How to change default exe icon in C / C ++?

I want to change the default .exe icon to another icon in C / C ++. Does anyone know how to do this?

+4
source share
4 answers

Already answered.

Change application icon in Visual Studio 2005?

First you have to put your .ico file in the resources folder.

+4
source

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

Since you indicated that you are using VS2008, I can point you here: How to set an icon for my application in visual studio 2008? (duplicate question)

+2
source

On Windows, if the executable contains many icons, the first one will be the default.
If you have an icon resource in your programming environment, put the icon you want first on the list.

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

(as I said in my comment, I do not have VS2008, but the steps should be the same)

Menu: Insert โ†’ Resource โ†’ Import
Select Icon, click the import button, and select the icon file.

Now close the icon editor and save the script resource in the project folder.
Select View Files and add the script resource file to the Resource Files.
What is it.

+1
source

if you use some ideal like dev C ++ then you can specify the icon you want to display in your file in the project options

+1
source

Source: https://habr.com/ru/post/1302227/


All Articles