Advertisement

Another Question...Icons in .exe s

Started by March 19, 2002 11:38 AM
3 comments, last by Lohrno 22 years, 7 months ago
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
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
Advertisement
Cool! Thanks a lot! =D Thats exactly what I wanted to know! =D

-=Lohrno
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
C:DOSC:DOSRUNRUNDOSRUN-Comic Book Store Guy's t-shirt that I saw on the Simpsons, although it didn't actually come from the Simpsons.http://vdsoft.netfirms.com/home.html
I dunno, it works fine for me, I put in one icon, and boom! It''s the program''s Icon! =D

-=Lohrno

This topic is closed to new replies.

Advertisement