Click to See Complete Forum and Search --> : Adding an icon to project with "sub Main" only, no Forms.


AndyK
April 17th, 2001, 03:38 AM
How to add an icon to replace EXE's icon when compiled if I don't use any forms in my project, only SUB Main?

Clearcode
April 17th, 2001, 03:54 AM
You need to use the resource editor application that comes with visual studio and add the icon to a .RES file, then compile it using the RC application.
The icon with the lowest ID is used by the API GetAssociatedIcon so I'd imagine it is also used by Explorer.

HTH,
D.

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com

coolbiz
April 17th, 2001, 11:18 AM
The easiest way is to add a dummy form and set the icon there. I know that you said no form but why not since it does not take too much space and you do not have to display it.

-Cool Bizs