Set an exe icon for my program

前端 未结 5 693
情书的邮戳
情书的邮戳 2020-12-11 00:29

I\'m using Microsoft Visual Studio 2008 and I\'m trying to set an exe icon for my program.

I\'ve searched this site and found this: How do I set the icon for my appl

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 00:48

    See resource.rc in your application.

    #define IDI_ICON_1            102
    #define IDI_ICON_2            103
    

    // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems.

    IDI_ICON_1            ICON                    "icoMainApp.ico"
    IDI_ICON_2            ICON                    "iconSecond.ico"
    

提交回复
热议问题