C++ GUI's

This is a discussion on C++ GUI's within the C++ Programming forums, part of the General Programming Boards category; Hi everyone, I'm quite new to C++, but I am putting in 6 or 7 hours a day of learning ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    20

    C++ GUI's

    Hi everyone, I'm quite new to C++, but I am putting in 6 or 7 hours a day of learning (I have a lot of free time on my hands after being wrongfully expelled from school). But I am hoping to get a job in C++ when I am older.

    But more to the point I was just wondering about GUI's with C++. Once I know alot more about C++ what will I have to learn to use GUI's? I'm not so clear on the subject of DirectX, Opengl and all that. If someone could give me any info on them or any links I'd really appreciate it.

    Thanks again,

    -Marlon

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    They are hell... do your gui's in either visual basic or C#

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Well assuming Windows is your platform you could go for the windows API or MFC. The other choice is a cross platform library like GTK+ or wxWdidgets.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    20
    Yup, I'm on windows. Thanks for your responses, I'll probably look into Windows API and C# (I got bored of VB when I tried it).

    Thanks again

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Before you jump-in too deep, too quickly...

    There is no color, graphics, mouse, sound, networking, etc., in Standard ANSI/ISO C++. All that stuff is extra and platform-specific.

    If you were taking C++ in college, you might spend two full semesters on standard C++ before starting any graphics or GUI.

    But, you don't really need to know everything about C++ before starting with GUI. The Windows API is almost a different language altogether. I knew quite a bit of C/C++ when I first opened Petzold's book and saw Hello Windows... I didn't recognize any of it! And, it's almost two freekin' pages of code!

    You need the underlying C++ to make your program work well and to do something useful. You need the GUI stuff to make it easy to use, and to make it look good.

    I would suggest that you start-out with the Windows API. I don't now if it's the easiest GUI, but there is probably ten times the learning material for it than for all the other GUIs combined.

    Now, with all of those negative comments out of the way... Take a look at the Forgers Windows Programming Tutorial. Then when you're ready, get hold of a copy of Programming Windows, by Charles Petzold.

  6. #6
    Registered User
    Join Date
    Apr 2006
    Posts
    20
    Thanks for the links and info Doug . I realise that I have quite a while to go before I should be looking into GUI's, it's just a question which has been bugging me for a while.

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    It's not all that complicated... well it is... but it isn't.... you have to do one.. mine is full o' bugs

  8. #8
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    Assuming you're already pretty good with C++, and you understand C as well (lots of APIs still use C), here's one of the top rated Win32 tutorials
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best Language for GUIs?
    By thetinman in forum Windows Programming
    Replies: 4
    Last Post: 03-05-2006, 10:08 AM
  2. Gui's with C
    By Saterial in forum C Programming
    Replies: 7
    Last Post: 11-27-2003, 10:51 PM
  3. help (C or C++) gui's
    By johnc in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-03-2002, 12:17 AM
  4. Windows GUIs
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-02-2001, 08:21 AM
  5. How are cool looking GUI's made?
    By fatpotatohead in forum Windows Programming
    Replies: 9
    Last Post: 11-14-2001, 12:20 AM

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