Change app icon in Visual Studio 2005?

后端 未结 4 815
情话喂你
情话喂你 2021-02-08 23:40

I\'d like to use a different icon for the demo version of my game, and I\'m building the demo with a different build config than I do for the full verison, using a preprocessor

4条回答
  •  半阙折子戏
    2021-02-09 00:06

    What I would do is setup a pre-build event (Project properties -> Configuration Properties -> Build Events -> Pre-Build Event). The pre-build event is a command line. I would use this to copy the appropriate icon file to the build icon.

    For example, let's say your build icon is 'app.ico'. I would make my fullicon 'app_full.ico' and my demo icon 'app_demo.ico'. Then I would set my pre-build events as follows:

    Full mode pre-build event:

    del app.ico | copy app_full.ico app.ico
    

    Demo mode pre-build event:

    del app.ico | copy app_demo.ico app.ico
    

    I hope that helps!

提交回复
热议问题