Archived

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

Lohrno

Another Question...Icons in .exe s

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
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