Thursday, June 18, 2009

Crearting a simple window in C using GTK+ library in windows system

I have been trying to run a C program that uses GTK library.

At first I tried to use visual stdio 2005.
But I didnt succeed.

Then tried with MInGW and succeeded to run a GTK based GUI program.

I got help from the following two sites :
[0]http://www.daniweb.com/forums/thread86245.html#
[1]http://modulatum.wordpress.com/2008/06/02/get-started-with-gtk-using-mingw/
[2]http://www.gtk.org/download-windows.html

At first I followed all the procedure written in [0]

But this didnt running C GUI program .

So i Got help from the second website[1].

i followed from step 3

that means I got the GTK+bundle from [2] and extract it into my MinGW install directory.

This will replace the files that i have extracted there previously.

And followed the rest of the step mentioned in [1]

All these procedures I did to run a GTK based simple application in my windows system.

Now you can add more functionality and add more widgets by modify the hello.c code.

No comments:

Post a Comment