How would I add an icon to a MASM project? Someone said something about resource script files? Can anyone point me in the right direction?
Thanks.
Rogue,
Create the icon then use a resource editor to add it into the project. hen you use the Windows API LoadIcon() or LoadImage() to get a working handle to it and display in where you need.
I dont want to display the icon. I want it to be for the exe itself.
Rogue,
Just load it using the resource script. You do not need to add any instructions in the assembly source file if that is all you want to do. When the project is built, the exe will use the icon, on the desktop, for example. I have included an example from the GeneSys Project to show you how it is done.
[attachment deleted by admin]
Simply add the icon as a resource.
Windows will display the 'first' icon as the exe's icon - so make sure it's numerically first (or alphabetically, if you're using string names); not that it matters if you only have one icon :wink
In your .rc file, add the following line:
100 ICON "youricon.ico"
Quote from: Tedd on July 20, 2008, 05:03:14 PM
Simply add the icon as a resource.
Windows will display the 'first' icon as the exe's icon
Just for curiosity: Is there any way to tell Windows it should use the icon of another file, i.e. not to embed an icon, but rather put a reference only? This works obviously for shortcuts and for registered application files, e.g. the .pdf and .doc show their respective icons.
opps, replied in wrong topic, please delete.