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

前端 未结 5 1446
执笔经年
执笔经年 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:10

    Right-click the project, Add + New Item, select Text File, name it Blah.mc. Enter or paste the definitions. Right-click Blah.mc, Properties, Custom build step:

    • Command line = mc $(InputPath)
    • Outputs = $(InputName).rc

    Edit your .rc file, add:

    #include "Blah.rc"
    

    Worked for me, ought to be close.

提交回复
热议问题