C/gui programmin
Expert: Zlatko - 3/12/2010
Questionhelp me how to startup with c for Graphical User Interface.
For example,how can i make hello window with buttons in c?
please direct me....
AnswerHello Jignesh. That's a good question.
C does not have any Graphical User Interface (GUI) functionality itself. You need to use a specific library.
On Windows I am familiar with
Microsoft Foundation Classes (MFC)
Dot Net Forms
Qt
On Unix/Linux I am familiar with
X Windows
Qt
All are C++ except for X Windows on Unix/Linux
On Windows in C you can use the Windows API, but I am not experienced in that. It is the most unpleasant. That's why Microsoft developed MFC to make it easier.
Qt will work on Windows, Linux, and the Mac.
Qt is actually the nicest to learn and its free.
You can download Qt, with a Gnu compiler, and a very nice graphical development environment, from
http://qt.nokia.com/products
You can download an excellent free book from
http://www.qtrac.eu/marksummerfield.html
Look for a link to PDF in a ZIP
You can read an online one at
http://www.kdedevelopers.org/node/3526