How to assign an icon to an executable file in windows (or visual studio)

I would like to use a custom icon (.ico file) for the executable in windows (XP). An executable file is a C ++ program created by visual studio (2008).

How can I change the icon from the executable to the .ico file I want?

+3
source share
5 answers

Mentioned in comments, this is a recurring question

Here's a copy of the answer from Jason Stevenson:

( : → → ). , . Icon, Visual Studio, . " ", .

. , (), "".

.

+4

, Resource Hacker, ( ) Windows.

+1

, "resource.h" ".rc" , "resource.h" ( IDI_MY_ICON), rc -file IDI_MY_ICON ICON "myicon.ico" ( , ICON). , .

0

In C # projects, you are right to click on the project that creates the .exe file, select "Properties", and on the first screen you can set the icon. Not sure if this works for C ++, but the property bar is the place you should look into.

-2
source

You can find it in the "Properties" of your project. (Right click on your project name). This is on the Applications tab, at least in Visual Studio 2008, running in C #, and it scrolls a bit there.

-2
source

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


All Articles