This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes C / C++ and the fly likes How to make a C++ basic GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "How to make a C++ basic GUI" Watch "How to make a C++ basic GUI" New topic
Author

How to make a C++ basic GUI

Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
I am a complete newb in C++ and need help making a simple GUI. Any help will be apreciated!!!


Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.
David Sharpe
Ranch Hand

Joined: Jun 15, 2009
Posts: 32
Please be more specific. Your question as stated is more of a Google query than a forum topic. You might start by explaining what research you've done on your own so that people interested in helping you don't waste your time by telling you things you already know.

I'm a bit worried that writing a C++ GUI might be beyond a "complete newb in C++", but I'm not sure. In my experience, C++ GUI tutorials assume a firm grasp of C++ syntax and semantics.

Since C++ doesn't have a standard GUI toolkit (like Java's "Swing" toolkit), you'll need to choose one. I've programmed a simple media player application using gtkmm before, but I'm also curious about wxWidgets. Qt is a popular choice.
Brian Drelling
Ranch Hand

Joined: Oct 02, 2009
Posts: 42
While I am not the original poster, I'd like to ask a question of my own on this topic.

Obviously Java is easier to make GUI with using Swing, but just how complicated is it with C++? Is there ANYTHING that helps you in C++ to do this?

You would think with the extent the language is used for game programming, something like Swing would have existed by now, and if it does and I simply don't know about it yet, please excuse my ignorance and inform me.

I am currently learning C++ and Java simultaneously, and it is tough. Java is way easier, but it seems like you can really have much more of a grasp on every little thing you are doing in C++, which can also lead to many more mistakes. Correct me if I am wrong.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
A pretty good overview of GUI toolkits can be found at http://www.atai.org/guitool/

The Qt toolkit is probably the one for which it's easiest to get help online, but it's not free to use for commercial applications.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a C++ basic GUI
 
Similar Threads
Passed with 148 / 155
pros and cons of JNI
Java GUI
Java call to C++
I Want to Learn C As Additional Programming Language