Jump to content
  • Advertisement


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


How do you change icons on applications in Win2k

This topic is 5794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!