Jump to content
  • Advertisement


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


Icon Resources...

This topic is 6544 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

Hello, had a quick question for all you Win32 programmers out there. I have been trying to alter the icon displayed on my projects .exe file. I use VC++ 5.0 and I have been told to add a resource file with the icon in it then insert it into the file. Now being entirely new to resources can someone explain in fine detail how I can go about inserting this icon? Also I am not using MFC code, as my project is created as a standard Win32 Application. Oh btw, does anyone know what I should name my icon as? IDR_MAINFRAME? IDI_ICON1? And do I have to create my own Resource.h file to declare the values for the resource? Thanks in advance.... -Quicksilver

Share this post

Link to post
Share on other sites
- Have you tried: LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON1));
- The name you give isn''t important - name it what you want!
- A "resource.h" file is automaticly created for you in MSVC!
- If you include multiple resource icons in your app, the one with the lowest ID-value will be displayed in the MS Explorer...

Hope this is enough
- Bas

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!