how do i use an ico (icon) with my C program. i made the icon, but I don't know how to use it instead of the standard exe icon
how do i use an ico (icon) with my C program. i made the icon, but I don't know how to use it instead of the standard exe icon
If its a DOS program you can right click your program file and select properties; you can change the icon from there. (This will simply create a shortcut to the file with your icon).
If its a win32 program you need to make an icon resource and assign it to your main windows class; e.g.
...
wincl.hIcon = LoadIcon(hThisInstance, MAKEINTRESOURCE(ID_MYGAYICON));
wincl.hIconSm = LoadIcon(hThisInstance, MAKEINTRESOURCE(ID_MYGAYICONSMALL));
...
dom
thanks
not just that, but the icon that will appear in windows explorer will be the first one it comes across in the program exe. so if you have more than one icon in your exe, make sure that the one you want to show in explorer is the one with the lowest resource ID, or the one that comes first alphabetically.
nice "feature" huh!?
U.
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.