Quote:Original post by Endurion Weird, try to open your exe with Resource Hacker (it's a nifty freeware tool allowing you to read and even modify the resources of exes and dlls). Look esp. at the resource sections and the ID. It should contain one Icon and one Icon Group. The id of the icon group should resemble the define you pass in LoadIcon.
Downloading it now. In the meantime I tried making a new 16x16*16 colours icon. Didn't work either. [evil]
Error 1813: The specified resource type cannot be found in the image file. [headshake] The icon works everywhere else. BTW, Thanks for all your help so far.
Aha, it seems that the resource type for the icon is wrongly added. There are several predefined resource types (for icons it's RT_ICON) and it seems that your icon got the wrong type associated with it.
The entry in the .rc-file should look something like this:
If it wasn't an icon, why would it work in explorer for my .exe? Yes this is very odd. Could be that I'm using infraview to save my icon. Do you know a freeware program that I could use to load/save it?