Jump to content
  • Advertisement

Archived

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

Lohrno

Another Question...Icons in .exe s

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

How do you make a .exe have its own Icon? I mean without any .ico files in the same directory? And if it cant be done with some .icos in the same directory =D -=Lohrno

Share this post


Link to post
Share on other sites
Advertisement
I''m assuming you''re using Visual C++ 6 (let me know if you need .NET directions, but it''s pretty similar).

With your project open, click on Insert, Resource from the main menu. Select the Icon list item under the Resource Type heading. If you have an ico file, click on the Import button, otherwise click on New. Next, paint a pretty picture.

That''s it. Just rebuild your application. Windows will automatically use the icon with the lowest resource id as the executables icon (you can have more than 1 icon within an exe file). Let me know if that helps.

-Mark

Share this post


Link to post
Share on other sites
Don''t you have to change the winclass.hIcon and winclass.hIconSm to reflect the icon you want to use for your program? That''s what i was always told.

-AJ

Share this post


Link to post
Share on other sites
I dunno, it works fine for me, I put in one icon, and boom! It''s the program''s Icon! =D

-=Lohrno

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!