Sign in to follow this  
DigiMan Shart

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


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this