Archived

This topic is now archived and is closed to further replies.

snisarenko

How do you change icons on applications in Win2k

Recommended Posts

I''ve tried everything and i still can''t figure it out. AGggggrrrrrrrrrrrr!!!!!!!! This has got to be simple ..... Windows Help doesn''t give SH**T I used to be able to do it on win 98

Share this post


Link to post
Share on other sites
Change the icon of an application? Don''t you mean change the icon of the shortcut to the application? Changing the icon of the shortcut is exactly the same as 98, just right click the shortcut, select properties and click "Change Icon". On the other hand changing the icon of an application (exe) file is much harder because Windows 98 (or any other version of Windows) has no built in way to do it, you are editing a part of the file itself. To change the icon of an exe file you need a Windows resource editor which can extract and replace data stored inside an exe.

Share this post


Link to post
Share on other sites
just put the icon in the same map as the .exe file
add it to your app when registering the windows class

ID_ICON is a define for a number e.g. 101 as long as it is unique
and it''s declared in a file e.g. resource.h

ID_ICON ICON "my_icon.ico"
is declared in a resource file called for example resource.rc

resource.h is included in resource.rc and your window class
in your window class you can use the icon as follows...

wc.hIcon = LoadIcon( hInst, MAKEINTRESOURCE( ID_ICON ) );

where hInst is the handle to your current instance

Share this post


Link to post
Share on other sites