GUI's in C++

Discussion in 'OT Technology' started by opS)n., Jun 14, 2003.

  1. opS)n.

    opS)n. Who are you to me?

    Joined:
    Jun 5, 2003
    Messages:
    2,152
    Likes Received:
    0
    Location:
    Amherst
    I'm looking to find a method to make my c++ app's a GUI, but I have no knowledge about making them, I assume it has something to do with ActiveX, but hell, what do i know. :rolleyes:

    thanks in advance.
     
  2. NoLiving

    NoLiving Guest

    Although I've never done any GUI programming myself, I know you won't be using ActiveX, that's more associated with web programming and COM. You're probably thinking of DirectX but even then that's probably not what you want to use for making a GUI. DirectX is like OpenGL in that it's basically a library for making 3d things. I think the easiest way to make a GUI program is to get a copy of Visual C++ and design it with that because then you can just paint what you want and it gets made.
     
  3. crotchfruit

    crotchfruit Guest

  4. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    I'm assuming you're in Windows. You can either learn to code it all by hand (the link crotchfruit posted), or you can pick up Borland C++ Builder or Visual C++ and it'll code the GUI for you, you just have to add the workings of the program.

    If you're on Unix/Linux, there are a bunch of different options (GTK, QT, etcetera).
     
  5. Drifter

    Drifter wat

    Joined:
    Mar 6, 2000
    Messages:
    21,956
    Likes Received:
    214
    Location:
    Canada
  6. KingNothing

    KingNothing New Member

    Joined:
    Mar 4, 2002
    Messages:
    11,729
    Likes Received:
    0
    Location:
    Atlanta & Auburn
    Visual C++ will only code the GUI for you if you are using at least Visual C++ 2003 - 2002 will NOT allow you to do it.
     
  7. Scn64

    Scn64 Guest

    I've got 6.0 :hs:
     
  8. NoLiving

    NoLiving Guest

    I have 5.0 and that lets me program a GUI, I think you're wrong.
     
  9. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    stay away from mfc. its horrible.
     
  10. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    what in the hell are you talking about?
     
  11. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    ummm yeah.... it seems u dont know wtf ur talking about..

    k, tkx, bye.
     
  12. KingNothing

    KingNothing New Member

    Joined:
    Mar 4, 2002
    Messages:
    11,729
    Likes Received:
    0
    Location:
    Atlanta & Auburn
    I can find nothing in my copy of MS Studio.NET 2002 that will auto-code a GUI for me in C++ like it will in C# and Visual BASIC. Where's it at?
     
  13. BaZ

    BaZ 2004 ACC Champions

    Joined:
    Jun 12, 2001
    Messages:
    2,005
    Likes Received:
    0
    Location:
    Hokieville, USA
    MFC isnt that bad, but im rapidly becoming a fan of QT. its cross-platform too
     
  14. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    why auto code? are u that bad at coding? learn to write it urself.

    and u said nothing about auto-code. u said:

    ive done gui in vs.net 2002.
     
  15. KingNothing

    KingNothing New Member

    Joined:
    Mar 4, 2002
    Messages:
    11,729
    Likes Received:
    0
    Location:
    Atlanta & Auburn
    I said Visual C++ will only code the GUI for you if... . Not that it was not possible to code a GUI.
     
  16. eof

    eof New Member

    Joined:
    Jan 17, 2002
    Messages:
    7,288
    Likes Received:
    0
    I havn't used 2003 but in 2002 you can make GUI's pretty much the same way in C#/VB as C++. I would be interested in seeing this "auto-code" feature.... :dunno:
     
  17. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    is it "wusiwug" coding? :dunno:
     
  18. turbo91

    turbo91 New Member

    Joined:
    Jun 14, 2002
    Messages:
    2,521
    Likes Received:
    0
    Location:
    San Diego, CA
    MFC is crap. It's only good for people who don't care or know how Windows actually works. There is so much overhead it's pathetic. Plus you require your clients to have the libraries, etc...
     
  19. Chadder007

    Chadder007 OG Diamond Member

    Joined:
    Oct 5, 2001
    Messages:
    15,326
    Likes Received:
    0
    Location:
    Chattanooga, TN
    QT???
     
  20. BaZ

    BaZ 2004 ACC Champions

    Joined:
    Jun 12, 2001
    Messages:
    2,005
    Likes Received:
    0
    Location:
    Hokieville, USA
    Download it at: TrollTech

    its a cross-platform library thats included with most Linux Distros
     
  21. crotchfruit

    crotchfruit Guest

    wow. lots of mfc bashing. look, i'm not an mfc-fundamentalist, but it's really not that bad. just because the apps *you* write aren't suited for the mfc framework doesn't mean that it's "terrible". obviously mfc is not meant for high fps 3d gaming... it's meant for small business apps and other misc tools; anything where you want to spend more resources on functionality then UI development.

    i have to write tons of small test apps for my company, to be used by the computer-illiterate technicians. mfc is the best way to keep programs "user-friendly" with the same look and feel that they're used to. mfc offers the lowest development-time-per-functionality-and-user-acceptance for test tools on any platform i've encountered so far. plus, my boss (another computer illiterate) will come over and drool/orgasm over how fast i can make 'windows-looking applications'.. for all he knows i had to code *everything* from scratch.

    it's also very flexible if you know how to use it. codeproject.com has libraries full of custom controls that add great functionality to a program with almost zero dev time.

    and what's this about people needing special libs to run an mfc program? a mfc prog built with visual studio 6.0 can run on anything from win98 to winxp w/o additional dlls.

    anyways, mfc isn't the end-all platform, but it's good for what it's meant to do.
     
  22. cali2houston

    cali2houston New Member

    Joined:
    Jun 9, 2003
    Messages:
    403
    Likes Received:
    0
    Location:
    CA
    Go ahead use MFC. Thats what I am using and other groups in my company.
    Use classwizard to add code, which makes it like VB.

    Start a new Project in VC++, go to resource editor and for every object u add, rt click, and select class wiard to add fuctions like OnClick etc etc.
     
  23. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    if ur gonna do that, why not just use VB???
     
  24. cali2houston

    cali2houston New Member

    Joined:
    Jun 9, 2003
    Messages:
    403
    Likes Received:
    0
    Location:
    CA
    Thats totally ur choice, using VB or VC. VC is much faster (compiled code rather than interpreted) and is OOP oriented and, I think (not sure tho) has more flexibility and control over code.

    If u want simple application, w/ no restriction of speed, use VB. It's easier and faster for newbies like u n me.
     

Share This Page