which gui lib should I learn?

This is a discussion on which gui lib should I learn? within the C Programming forums, part of the General Programming Boards category; Hi! I have a decent understanding of C, but are very new to GUI programming. I want to make a ...

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    4

    which gui lib should I learn?

    Hi!
    I have a decent understanding of C, but are very new to GUI programming.

    I want to make a simple program with a input box(with ENTER button preferably), and a output box

    it should look something like this when it's done:
    Code:
    Appname goes here  _ [ ] X
    |----------------------------------|
    |outputoutputoutputoutput|
    |outputoutputoutputoutput|
    |outputoutputoutputoutput|
    |outputoutputoutputoutput|
    |----------------------------------|
    |inputinputinputinput|ENTER|
    |----------------------------------|
    Basicly it should look like a game console(like you may know from most FPS games)

    I know of 3 choices which may suit my needs, but i'm wondering which you recommend, and why.
    1. use the winapi, 2. gtk, 3. qtwin

    I'm leaning towards the winapi, since it seems to be better documented, and I've tried that before - however I'm open to suggestions.

    The main problem I'm having is figuring out how to create the input\output boxes(and optionally ENTER button for input)
    I also need direction on how to manage what should be displayed in output, and how(where) to read input.
    code samples, or just name of relevant functions will be very helpful.

    Thanks in advance!

    edit: forgot to mention i'm using dev-c++
    Last edited by naeo; 06-04-2009 at 05:48 PM. Reason: forgot to mention i'm using dev-c++

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by naeo View Post
    I'm leaning towards the winapi, since it seems to be better documented, and I've tried that before
    Stick with it then. I've done apps in a few different GUI API's (win ain't one of them, but anyway); they are hard to learn in the sense that they are about 10000% more complicated than you would think looking at it from outside*, but I am pretty sure they all share certain basic similarities, which means, once you're comfortable with one, it will not be a big deal to get comfortable with another, should the need arise. It is not like you are getting married to the API. Learn winapi, and then in a couple of months once you've realized the error of your ways, you can become one with the universe and enjoy gtk+.

    *or desire, if that counts for anything
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    4
    Thanks you for your reply.
    I have decided to stick with the winapi, and will look into the needed functions tomorrow

    If someone has some pointers, i'd be greatful - If not, no problem. will probably figure it out eventually :-)

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Quote Originally Posted by naeo View Post
    Thanks you for your reply.
    I have decided to stick with the winapi, and will look into the needed functions tomorrow

    If someone has some pointers, i'd be greatful - If not, no problem. will probably figure it out eventually :-)
    My suggestion is to go through the tutorial at winprog.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    4
    Thank you very much!
    It looks like that has all the info I need.

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. Developing GUI app with C
    By elf1984 in forum C Programming
    Replies: 2
    Last Post: 10-23-2008, 09:58 AM
  3. Easiest way to help a friend learn GUI programming?
    By Cat in forum Windows Programming
    Replies: 5
    Last Post: 10-19-2006, 10:16 AM
  4. help me using lib from Visual C++ 6
    By oskilian in forum Windows Programming
    Replies: 3
    Last Post: 10-11-2001, 11:28 AM
  5. GUI (Graphical User Interface) Help Needed
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-11-2001, 10:35 AM

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