2
How do I set the app icon in Visual Studio 2012 Express?
ps: Da executável.
ps²: Aplicação C++
2
How do I set the app icon in Visual Studio 2012 Express?
ps: Da executável.
ps²: Aplicação C++
2
As you’ve been asking about C++ I’ll understand that this is the kind of application you’re talking about.
What I’ll show you next not available in Express versions (the original question didn’t mention it). But it doesn’t matter, download the version Community 2013 (2015 will be available soon) which is essentially Professional. It’s completely 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 get into ADD > RESOURCE...
.ico
and click on IMPORT
(select only *.ico
, cannot use other files)If you need to check the file resource.h
to see the icons listed there. If you put several icons, the application icon will be the one that has the handle Meno.
It is also possible to include an icon (meuicone.ico
for example) manually in the resource file, for example the resource.rc
:
101 ICON "meuicone.ico"
Or
MAINICON ICON "meuicone.ico"
There’s a trick to doing this on the Express according to this response in the OS.
Another solution in this blog.
Browser other questions tagged visual-studio visual-studio-2012
You are not signed in. Login or sign up in order to post.
I omitted some data. I use the express version, is it possible to set the icon of the application? ps: There is no "Resource View" option in the "View" menu".
– Gabriel Sales
Did you know that there is no need to use Express versions anymore? http://answall.com/a/40610/101. I think you should have this option even in the Express version. You have the option to do it by hand.
– Maniero
Interesting, I didn’t know. Can you show in your answer how you do "in hand"? Soon I will use another version, but for now, I will continue learning with this.
– Gabriel Sales
I updated what I just found out.
– Maniero
Neither of the two methods worked in VC++ 2012.
– Gabriel Sales
If you’re not doing anything wrong, which you might not be, the answer would be: no, switch to the 2013 Community.
– Maniero
Then I’ll download.
– Gabriel Sales