Manuel Mangual
Manuel Mangual

Reputation: 75

Change my executable icon

I am new to changing default icons on c++ console applications. But recently, I have been wanting to know how it is accomplished. I managed to save an .ico file and when I build my application in Release mode I open it and I see the new image show up when my window is running and then a tiny icon showing up in the top left hand of the screen, and seeing that made me very happy.

enter image description here

enter image description here

But I wanted to know how can I change the image of my executable file so that it is consistent with my program?

From this...

enter image description here

To this...

enter image description here

Can anyone help me figure out what the steps are to change the default executable icon to the one I want? Many thanks in advanced!

Upvotes: 0

Views: 1889

Answers (1)

deviantfan
deviantfan

Reputation: 11434

Add a new file to the existing projekt and select as file type
"Symbol (ico)" in the "Resource" category.
Draw it, save it, compile again, finished.
Windows will automatically display the icon with the lowest ID (if any).
If there is only one icon, it can be only that one...

edit: You should make different sizes (16x16, 32x32, 64x64 etc.).

Upvotes: 1

Related Questions