Application icon in Visual Studio 2012 Express

Asked

Viewed 303 times

2

How do I set the app icon in Visual Studio 2012 Express?

ps: Da executável.

ps²: Aplicação C++

1 answer

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.

Resource archive

Basically you need to insert an icon (.ico) as Resource in the file. More or less like this:

  1. Go to the menu VIEW > RESOURCE VIEW
  2. Right click on the Resource view will get into ADD > RESOURCE...
  3. Choose the .ico and click on IMPORT (select only *.ico, cannot use other files)

Handbook

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"

Gambiarra on the Express

There’s a trick to doing this on the Express according to this response in the OS.

Another solution in this blog.

  • 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".

  • 1

    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.

  • 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.

  • I updated what I just found out.

  • Neither of the two methods worked in VC++ 2012.

  • 1

    If you’re not doing anything wrong, which you might not be, the answer would be: no, switch to the 2013 Community.

  • Then I’ll download.

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.