Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

c++ bios simulator


ghost's Avatar
0 0

hi, can anyone recommend me some good sites about "programming gui app in da console" ? because i can find only the normal console programming, but i cant get "standard bios look" et. blue screen, selection of thing etc. etc. thanks in advance


ghost's Avatar
0 0

i suggest you learn visual basic.but basicly,with any language you can create a blue screen with options,through which you can navigate with the arrow keys.


reaper4334's Avatar
Member
0 0

You mean something like the "NCurses" library? I haven't used it myself… only heard of it, but as far as I know, that's what you're looking for.

Let me know if it's any good, I might try it myself if it is.

Reaper


ghost's Avatar
0 0

dancuc wrote: "programming gui app in da console"

C++ doesnt have a standard graphics library. But you can always use some external libraries for that purpose(Allegro, OpenGL and DirectX are the ones I know of). If you're using Visual C++ then its a bit easier as it already has OpenGL included. Google for some OpenGL tutorials.

P.S. It'd be smart to write which OS you are using and the compiler. ( windows, linux, solaris, *BSD, … ; VCC, GCC, … )


mido's Avatar
Member
0 0

JohnDoe wrote:

C++ doesnt have a standard graphics library. But you can always use some external libraries for that purpose(Allegro, OpenGL and DirectX are the ones I know of). If you're using Visual C++ then its a bit easier as it already has OpenGL included. Google for some OpenGL tutorials.

P.S. It'd be smart to write which OS you are using and the compiler. ( windows, linux, solaris, *BSD, … ; VCC, GCC, … )

Also Borland is powerful. you will be able to use textbackground(); etc… Or use, markupSetConsoleTextAttribute(hcon,color);, setcolor (x);


ghost's Avatar
0 0

JohnDoe wrote:

C++ doesnt have a standard graphics library. But you can always use some external libraries for that purpose(Allegro, OpenGL and DirectX are the ones I know of). If you're using Visual C++ then its a bit easier as it already has OpenGL included. Google for some OpenGL tutorials.

That would be wise for graphics in a graphic OS, but (correct me if I'm wrong) I don't think it would be usable for graphics in, say windows commandline.


ghost's Avatar
0 0

so heres my specifications: os: dual boot: winxp and fedora core 6 compiler: in win: compiler included with dev-cpp and with borland c++, in fedora im not compiling


ghost's Avatar
0 0

thank you very much for that opengl, i was tryed to compile it without any graphical support, so now i know that i must use opengl or directx. thanks


richohealey's Avatar
Python Ninja
0 0

i think what he's getting at is more the ncurses library, for an irssi style interface.

Correct me if i'm wrong.


mido's Avatar
Member
0 0

OpenGL and Direct3D are both used for Graphics Driver. If i had to choose, I'll choose DirectX, DirectX is a "proprietary API" designed and developed by Microsoft. Its more Powerful, Faster, and Works under Windows Platform. Its just for 3D Acceleration. OpenGL is just a standard for 3D/2D Graphics. Also OpenGL is available for most operating systems - Unlike DirectX -.

References : Comparison Of OpenGL and Direct3D Microsoft OpenGL

For Performance, I suggest DirectX.

<edit> Some other useful links : DirectX: http://www.gamedev.net/reference/programming/features/gui/ http://msdn.microsoft.com/directx/ http://www.codesampler.com/dx9src.htm http://www.hotscripts.com/Detailed/11709.html http://www2.arnes.si/~ssdudzin/ http://scorpioncity.com/djdirectxtut.html

OpenGL: http://www.cprogramming.com/tutorial/opengl_introduction.html http://www.nigels.com/glt/ http://www.gantless.com/borland.html (borland). http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/ogladv/index

  • Mido - </edit> Hope that helped.

ghost's Avatar
0 0

richohealey wrote: i think what he's getting at is more the ncurses library, for an irssi style interface.

Correct me if i'm wrong.

I have to agree. The OP is asking for tips on creating a graphical interface in the console; in other words, he wants a text-based menu system like the old DOS menus. OpenGL and DirectX, while they could simulate such an environment, cannot create that environment natively.

So, I second the idea of researching the ncurses library.


ghost's Avatar
0 0

thanks ncurses works fine