GUI in C++

This is a discussion on GUI in C++ within the C++ Programming forums, part of the General Programming Boards category; Good day ! Need help here How am I going to implement a GUI interface using C++ ? For example, ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    13

    Question GUI in C++

    Good day ! Need help here

    How am I going to implement a GUI interface using C++ ?

    For example, I wish to show a picture on the left side of the screen if the boolean value is true and on the right side when the boolean is false. How can implement it ?

    Do I need to use a class so called MFC ? Is there any other alternative?

    I know how to do it using Java but having some serious problem to implement it using C++

    What can i do ?

    Thanks and have a nice day !

  2. #2
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Talking well...

    Unlike Java, C++ is for the more seasoned, and innovative programmer. There are sooo many wayz to do that it would take years to exress. In Java you have 1 option - AWT. In C++ you can use any lib you want or any asm anything.

    A good begginer way (depending on your compiler) would be to use 13h, or if its a windows compiler, use OpenGL/WinAPI. In C++ you must be somewhat explireienced before you get into graphics... I suggest learning more ANSI C++, and purchasing MSVC++ and Borland C++ before you get into gaphics, once ur into API's, its the funnest thing in the world.

    SPH

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    You have a few options for a GUI:

    You can use the MFC (Microsoft Foundation Classes), but you need to have Visual C++ to use them properly (Borland C++Builder has some MFC capabilities, not not nearly as much as Microsoft's compiler).

    You could also use VCL (Visual Component Library), but you need either Borland C++Builder or Borland Delphi to use VCL. One of the nice things about this is that C++Builder is made to work with components written either in C++ or in Delphi.

    Another option is using a free library that is compiler independent. There is a good GUI library written using the OpenGL library that works well, but I don't recall the name right now. I'll try to find it and post it here later.

  4. #4
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Exclamation GLUT

    You're thinking of 'GLUT', thats a begginer's OpenGL Lib, I highely discurage you from using it, becosue it "stunts you're growth as a programmer", I say dive into the real thing:

    http://nehe.gamedev.net

    SPH

  5. #5
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    No, I'm not thinking of GLUT. I'm thinking of a library that is basically a library of visual components for GUI's, and I can't remember the name. It is actually a really good library though.

  6. #6
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Gah, GLUT is cool.

    A windowing, multi-platform API specifically for OpenGL. No need to learn the huge win32 API just to put some triangles on a screen.

    On the other hand, I wouldn't use OpenGL for a GUI.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  7. #7
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686

    GLOW Toolkit

    I finally found that library I was talking about. It is the "GLOW Toolkit". You can find it here: http://www.ugcs.caltech.edu/~dazuma/glow/

    There is also a list of various other GUI libraries located at: http://www.free-soft.org/guitool/

  8. #8
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    I know about that. Still, using glut for a GUI means that whatever platform you write for needs an OpenGL implementation.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  9. #9
    Registered User
    Join Date
    Sep 2001
    Posts
    13

    Wink Thanks a lot !

    Thanks a lot for the advices.

    I am looking into them now. If I got any problem, I will approach you all again

    Thanks again !
    Last edited by SonicWave; 09-04-2001 at 10:00 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Programming...
    By ShadeS_07 in forum C++ Programming
    Replies: 12
    Last Post: 12-28-2008, 03:58 PM
  2. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 03:39 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 03:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 02:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21