c - icon showing on window but not on .exe file (gtk3 windows7) -


i'm compiling c application gcc uses gtk3

i use gtk_window_set_icon() set icon, , shows on window , taskbar.

i want know how can compile application file .exe has same icon. (i.e. when open folder .exe located see icon on .exe file, before launching program)

any idea ?

(note, running on windows 7 64bit)

in fact gtk has nothing with. gtk library graphical user interface. here want manage exectuable file.

since you're on windows, achived using resource file. icon can have (name resource.rc example):

1 icon test.ico 

then gcc suite, can use windres compile this:

windres resource.rc resource.o 

and compile , link together:

gcc test.c resource.o 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -