Defining the Icon Resource

Once you have an icon file, you must define that icon in your application's resource script (.RC) file.

To define an icon resource, add an ICON statement to your resource script file. The ICON statement defines a name for the icon, and specifies the icon file that contains the icon. For example, the following resource statement adds the icon named MyIcon to your application's resources:

MyIcon ICON MYICON.ICO

The filename MYICON.ICO specifies the file that contains the images for the icon named MyIcon. When the resource script file is compiled, the icon images will be copied from the file MYICON.ICO into your application's resources.