[try Beta version]
Not logged in

 
Open a window on Linux

Aug 20, 2008 at 2:10am
I was looking around the web for a tutorial on how to open a window with C++. And I kept coming across the windows.h header file.

Is this header file for the windows operating system only, or can it be used on Linux?? If it can't what are the alternatives?
Aug 20, 2008 at 2:39am
It is Microsoft Windows only.

On *nix the OS API is xlib, but you really don't want to mess with that directly. Use a GUI toolkit.

Best choices (in no particular order):

Trolltech Qt
http://trolltech.com/

GTK+
http://www.gtk.org/
http://sourceforge.net/projects/gtkpp/

wxWidgets
http://www.wxwidgets.org/

FLTK
http://www.fltk.org/

FOX
http://www.fox-toolkit.org/

You may also want to peruse The GUI Toolkit, Framework Page
http://www.free-soft.org/guitool/

Hope this helps.
Aug 20, 2008 at 10:53pm
Thanks Duos, I by accident (I really just forgot I made this post) reposted this question in the beginner section. Just disregard it!
Topic archived. No new replies allowed.