Configure the message compiler (mc.exe) as a custom compiler step in VC++ 2010?

前端 未结 5 1385
执笔经年
执笔经年 2021-02-01 07:43

Can anyone list the specific and detailed steps to configure mc.exe (the message compiler) to compile a .mc file into a .rc file as a custom compiler step in VC++ 2010?
I am

5条回答
  •  醉话见心
    2021-02-01 08:19

    In Visual Studio 2017 - then you can do following:

    open up the .vcxproj file for your project, then add following lines inside the ItemDefinitionGroup :

    
      mc "$(InputDir)\$(InputName).mc" -r "$(InputDir)\res" -h "$(InputDir)"
    
    

    This should generate 3 files .h, .rc, and .res - look in the designated build folder

提交回复
热议问题