How do I set the application icon in Visual Studio 2012 Express?
ps: Da executável.
ps²: Aplicação C++
How do I set the application icon in Visual Studio 2012 Express?
ps: Da executável.
ps²: Aplicação C++
As you have been asking about C ++ I will understand that this is the type of application you are talking about.
What I'll show below not available in Express (the original question did not talk about it). But never mind, download the Community 2013 (2015 will be coming soon) which is essentially Professional. It's totally free.
Basically you need to insert an icon ( .ico
) as resource in the file. More or less like this:
VIEW > RESOURCE VIEW
Resource view
will enter ADD > RESOURCE...
.ico
and click IMPORT
(select only *.ico
, you can not use other files) If you need to check, look for the resource.h
file to see the icons there. If you put multiple icons, the application icon will be the one with the lesser identifier.
It is also possible to include an icon ( meuicone.ico
for example) manually in the resource file, for example resource.rc
:
101 ICON "meuicone.ico"
Or
MAINICON ICON "meuicone.ico"
There is a trick to doing this in Express as this response in the OS .
Another solution on this blog .