Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Making GUI's in C++

  1. Jan 27, 2008 #1
    Hey can anyone direct me to a good website??
     
  2. jcsd
  3. Jan 28, 2008 #2

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Look into Qt, GTK+, wxWindows, etc.

    - Warren
     
  4. Jan 28, 2008 #3

    sas3

    User Avatar
    Gold Member

    Here is a good Tutorial for you
    http://www.winprog.org/tutorial/
    If you already looked around you probably already know about that site.
     
  5. Jan 28, 2008 #4
    id stay away from that. Win32 API is attrocious at best when you need to do more stuff ( but it is the only way to go sometimes ) . though if youre going to head down that path, the msdn developer center is great.
     
  6. Jan 28, 2008 #5

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    I'd also advise that you do not use the Win32 API if all you need is a basic GUI, or even a fairly complex GUI.

    - Warren
     
  7. Jan 31, 2008 #6
  8. Feb 1, 2008 #7
    In my experience easiest way is to use Microsoft MFC (layer over Win32). Comparing visual qualities of many Windows and Linux programs windows versions are clearly better for simple and advanced GUI.

    I think MAC Gui programming can be also easy, but I didn't work on MAC for few years.

    I myself would may be use Java / Swing.
     
  9. Feb 1, 2008 #8

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    MFC sucks. Java / Swing sucks worse. Use Qt, GTK+, or wx.

    - Warren
     
  10. Feb 1, 2008 #9
    QT works great on Windows and ports effortlessly. I think it's what I'd recommend too at this point.

    If you MUST stick with Microsoft solutions though I think C#/.net is preferable to MFC. I'm sure MFC works great if you're used to it, it but if someone is looking to learn GUI programming for the first time it is probably not a good place to start, since it is being phased out and all.
     
  11. Feb 1, 2008 #10
    If it wasn't obvious from previous post - I too recommend Qt.
    It uses the native API in each OS, so on windows you can't distinguish it from something programmed in win32API, on mac it uses aqua, on linux and BSD it has a kde look...

    apart from the easy meta object way of doing things in Qt (connecting objects with signals to slots makes event handling and threading very easy),
    Qt also provides integration with openGL for 3d rendering inside a window,
    string manipulation with regular expressions, Unicode and easy conversions between language codecs,
    better containers then STL has to offer (list, vector, map etc.),
    TCP\UDP client and server base classes, ftp and http clients, the labels and other visual text containers parse html, and in the next version (4.4) there will be some classes which handle very sophisticated sites with code from webkit (mac's safari and KDE's konqueror web engine ).
    oh and they will also have sound infrastructure using code from phonon (KDE's sound library) in 4.4...

    MFC is really ugly... it's more C then C++, and it's very easy to get lost in your code when using it... I recommend you avoid it.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Making GUI's in C++
Loading...