Creating a GUI in C

This is a discussion on Creating a GUI in C within the C Programming forums, part of the General Programming Boards category; Is there any way to create a GUI in C?...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    98

    Creating a GUI in C

    Is there any way to create a GUI in C?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,781
    Yes, but it depends on the platform that you are coding for.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    Quote Originally Posted by laserlight View Post
    Yes, but it depends on the platform that you are coding for.
    I'll be programming on and for Windows (I'm using XP) with GCC.

  4. #4
    life is a nightmare
    Join Date
    Apr 2007
    Posts
    127
    it could be helpfull
    http://www.winprog.org/tutorial/

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    Thanks for the link!

  6. #6
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    Quote Originally Posted by Mavix View Post
    I'll be programming on and for Windows (I'm using XP) with GCC.
    You'll have to use MingW (GCC port for Windows) because GCC is Unix only (but maybe that's what you meant...).

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    Quote Originally Posted by @nthony View Post
    You'll have to use MingW (GCC port for Windows) because GCC is Unix only (but maybe that's what you meant...).
    Actually I'm using another windows port called DJGPP (www.delorie.com/djgpp/)

  8. #8
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    You can also make GUI's with platform independent stuff (Qt, etc.). I bought a Qt book, it's MUCH easier to code in than win32 PLUS it compiles on my Linux machine too!
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

  9. #9
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Quote Originally Posted by Mavix View Post
    Actually I'm using another windows port called DJGPP (www.delorie.com/djgpp/)
    Pretty sure that's a DOS compiler, which means you probably won't be able to do Windows programming.

    Might want to look at some Windows compilers like MinG whatever, LCC-Win32, Borland's commandline tools, Microsoft Visual C++, etc. etc..

  10. #10
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    With DJGPP the best you could do would be to use coloured characters in a DOS console. If you want a more GUI-ish GUI then you'll need another compiler. I suggest Dev-C++, but of course there are many options.

    Be warned that GUI programming is a lot tougher than console programming.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  11. #11
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    For portability's sake, I'd say use GTK or Qt... Not Win32.

  12. #12
    Day Dreamer
    Join Date
    Apr 2007
    Posts
    45

    more options

    I have worked with GUIs on C and can suggest using may be
    Qt, Gtk, DirectFB (but that will work only on Linux) and
    by far the easiest and the best I used was Tcl/Tk.
    And yes it works on both windows as well as Linux!
    www.tcl.tk
    Check it out.
    Last edited by zombiezparadize; 05-03-2007 at 02:35 AM.

  13. #13
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    We were discussing GUIs for C, not Tcl/Tk GUI bindings...

  14. #14
    life is a nightmare
    Join Date
    Apr 2007
    Posts
    127
    now i became confused aren't qt and gtk are a C++ libraries ?

  15. #15
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,781
    I believe that Qt is for C++, but GTK+ is for C, with gtkmm as its C++ counterpart.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Creating a gui?
    By Kaho in forum C Programming
    Replies: 12
    Last Post: 08-20-2005, 08:56 PM
  3. Creating a 2D GUI using Direct3D
    By codec in forum Game Programming
    Replies: 8
    Last Post: 09-23-2004, 11:57 AM
  4. Creating a database (inside a GUI)
    By goosematt in forum C Programming
    Replies: 7
    Last Post: 10-23-2003, 11:04 AM
  5. creating gui in C
    By pmacne in forum C++ Programming
    Replies: 5
    Last Post: 02-14-2003, 06:44 PM

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