Make an executable icon with SDL

Started by
1 comment, last by Yeshua666 15 years, 6 months ago
I haven't really seen this mentioned anywhere, so I thought this might be a good place to ask. Is there a way to create an icon for the executable (.exe) of my program using SDL. I mean the actual image you click on to launch the executable, not the image at the top left of the window of the application, I already know SDL_WM_SetIcon does that. Thanks.
Alabama Man!!!
Advertisement
Add a resource file to your project. If you're using the express edition of visual studio, you'll have to make it yourself. Just create a file with the .rc extension. Use a text editor to add
1         ICON        "icon.ico"

Then it's just a matter of adding the resource to your project and compiling.
If I put my 2 cents in and get a penny for my thoughts, where does my other penny go?
On Windows XP you can simply right-click on the executable file and go to properties. Then on the "Icon" tab you can simply drag and drop the .ico file onto the text field. Be sure to click on "Apply" when you're done.

This topic is closed to new replies.

Advertisement