Is there any way to create a GUI in C?
Is there any way to create a GUI in C?
Yes, but it depends on the platform that you are coding for.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
it could be helpfull
http://www.winprog.org/tutorial/
Thanks for the link!
Actually I'm using another windows port called DJGPP (www.delorie.com/djgpp/)
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
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.
For portability's sake, I'd say use GTK or Qt... Not Win32.
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.
We were discussing GUIs for C, not Tcl/Tk GUI bindings...
now i became confused aren't qt and gtk are a C++ libraries ?
I believe that Qt is for C++, but GTK+ is for C, with gtkmm as its C++ counterpart.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)