Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to assign an icon to an executable on windows (or visual studio) [duplicate]

I would like to use a custom icon (a .ico file) for an executable, on windows (XP). The executable is a C++ program created thanks to visual studio (2008).

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

like image 985
0x26res Avatar asked Dec 10 '25 08:12

0x26res


2 Answers

Has mentioned in the comment, it is a duplicate question

Here is a copy paste of the answer from Jason Stevenson:

First go to Resource View (from menu: View --> Other Window --> Resource View). Then in Resource View navigate through resources, if any. If there is already a resource of Icon type, added by Visual Studio, then open and edit it. Otherwise right-click and select Add Resource, and then add a new icon.

Use the embedded image editor in order to edit the existing or new icon. Note that an icon can include several types (sizes), selected from Image menu.

Then compile your project and see the effect.

like image 197
0x26res Avatar answered Dec 11 '25 20:12

0x26res


You can use a program such as Resource Hacker to edit resources (including icons) of Windows executables.

like image 43
Vladimir Panteleev Avatar answered Dec 11 '25 22:12

Vladimir Panteleev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!