Hey i was wondering if anyone could tell me or give me a link on how to give my program an icon. i have the icon i want for it, but just dont no how to put it into the program. i tried google searching and nothing came up.
thanks!
This is a discussion on Adding Icons to program within the C Programming forums, part of the General Programming Boards category; Hey i was wondering if anyone could tell me or give me a link on how to give my program ...
Hey i was wondering if anyone could tell me or give me a link on how to give my program an icon. i have the icon i want for it, but just dont no how to put it into the program. i tried google searching and nothing came up.
thanks!
win32, just pathches a few addresses.
Then I suppose you are using the RegisterClass/RegisterClassEx function
The WNDCLASSEX structure contains handle of the Icon to use
Here is the sample code
http://msdn2.microsoft.com/en-us/lib...75(VS.85).aspx
If I have eight hours for cutting wood, I spend six sharpening my axe.
thanks heaps.
For the icon that you see on your exe in explorer, you have to compile the icon as a resource in your exe.
gg
Alternaviely you could use an app like Resouce Hacker for it.