Question

I want to change the default .exe icon to some other icon in C/C++. Does anybody know how to do that?

Was it helpful?

Solution

Already answered.

Change app icon in Visual Studio 2005?

You have to place your .ico file in the resources folder first of course.

OTHER TIPS

Use this one: http://www.angusj.com/resourcehacker/

Since you specified that you are using VS2008 I can point you here: How do I set the icon for my application in visual studio 2008? (duplicate question)

On Windows, if the executable contains many icons, the 1st of them will be the default.
If you have icons resource in your programming environment, place the icon you want first in the list.

Edit: since you created an empty project, to add an icon, follow these instructions:

(as I said in my comment, I don't have VS2008, but the steps should be the same)

Menu: Insert -> Resource -> Import
Select "Icon", press the import button and select your icon file.

Now, close the icon editor, and save the resource script in the project folder.
Select "Files View" and add the resource script file in the "Resource Files".
That's it.

if you are using any ide like dev c++, then you can specify the icon you want to appear on your file in project options

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top