Using MC (The MC Command Line)

The message compiler has the following command-line syntax:

Syntax

MC [-v] [-w] [-s] [-d] [-h dir] [-e extension] [-r dir] filename[.mc]

Parameters

-v
Generates verbose output to stderr.
-w
Generates a warning message whenever an insert escape sequence is seen that is a superset of the type supported by the OS/2 MKMSGF utility. These are any escape sequences other than %0 and %n. This option is useful for converting MKMSGF message files to MC format.
-s
Adds an extra line to the beginning of each message that is the symbolic name associated with the message identifier.
-d
Outputs Severity and Facility constants in decimal. Sets the initial output radix for messages to decimal.
-h dirs
Specifies the target directory of the generated include file. The include-file name is the base name of the .MC file with a .H extension.
-e extension
Specifies the extension for the header file, which can be from one to three characters. The default is .H.
-r dir
Specifies the target directory of the generated Resource Compiler script (.RC file). The script file name is the base name of the .MC file with a .RC extension.
filename[.MC]
Specifies an input message file that is compiled into one or more binary resource files, one for each language specified in the message file.

The message compiler reads the message file and generates a C/C++ include file containing definitions for the symbolic names. For each LanguageId statement, the message compiler generates a binary file containing a message table resource. It also generates a single resource script file that contains the appropriate resource compiler statements to include each binary output file as a resource with the appropriate symbolic name and language type.