Application icon in Visual Studio 2012 Express

2

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

ps: Da executável.

ps²: Aplicação C++
    
asked by anonymous 21.12.2014 / 07:15

1 answer

2

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.

Resource file

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

  • Go to the VIEW > RESOURCE VIEW
  • Right click on Resource view will enter ADD > RESOURCE...
  • Choose .ico and click IMPORT (select only *.ico , you can not use other files)
  • Manual

    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"
    

    Gambiarra no Express

    There is a trick to doing this in Express as this response in the OS .

    Another solution on this blog .

        
    21.12.2014 / 09:10