Share via


MC_FLAGS

The MC_FLAGS macro specifies command-line parameters to pass to the Message Compiler (Mc.exe). The MC_FLAGS command-line parameters are in addition to the default Message Compiler options, and they have the following considerations:

  • Do not use the /z option to change the base name for the generated files. The Build utility inference rules require that the name must be the same base name as the message file (.mc file).

  • Do not use the /r option to specify the target directory. Use the MC_SOURCEDIR macro instead.

  • Do not use the /h option to specify the target directory for the generated header file. Use PASS0_HEADERDIR instead.

The Message Compiler takes as input a manifest file or a message (.mc) file and creates a header file that contains definitions for the event provider, event attributes, channels, and events. You must include this header file in your source code. The message compiler also creates a resource compiler script (*.rc) and the generated binary resources (.bin files) that the resource compiler script includes; these files must be added to your Sources file.

See Also

MC_SOURCEDIR

PASS0_HEADERDIR

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011