# Make an executable icon with SDL

## Recommended Posts

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.

##### Share on other sites
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.

##### Share on other sites
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.

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
627719
• Total Posts
2978789

• 9
• 21
• 14
• 12
• 42