GUIs in C++

Hi. I'm new to the forums so don't be too harsh if I've asked a stupid question lol. I would consider myself a novice/intermediate level programmer but I only have about 10 weeks experience of C++. Basically what I want to know is how simple GUI elements like dialog boxes can be displayed with C++. What header files do I need to include in my programs and what methods can I make use of to do this. Are there any simple libraries for this built into C++. Something like the javax.swing package that comes with java would be perfect just to start experimenting with.

EDIT: I'm using Netbeans IDE 6.10 under Ubuntu 8.10 if that makes a difference.

Thanks in advance for any help

--
tang0delta
Last edited on
Well, sorry to disappoint you, but with just ten weeks, you still qualify as a complete newbie. But on to the matter at hand.

No, the C++ standard library only provides the most basic input/output functions and some pretty useful data structures that have little direct connection with GUIs. Some -- myself included -- call C++ a middle-level programming language for this reason. It lacks all that wussy GUIfication of higher-level languages.
Anyway, what you're looking for are GUI libraries, such as:
GTK+: http://www.gtk.org/
Qt: http://www.trolltech.com/products/qt/
wxWidgets: http://wxwidgets.org/

I'm sorry to say that using any of these, or ,in fact, any library at all, may be a little too much for someone as green as yourself. But don't let that stop you! The sooner you learn how to link libraries and read documentation, the better.
Thanks for your input. BTW, I meant 10 weeks experience in C++. In terms of programming in general, I have about a year and a half of proper experience, mainly in Java. I have used libraries before so I'll give these a go. Thanks anyway for your response.
Hi
Maybe CLX would be another nice alternative.
You can find CLX under CodeGear.com
I hope that will help you.
Greetings
Fab
Last edited on
Topic archived. No new replies allowed.