Invoking the MIDL Compiler
The MIDL compiler can generate code for different platforms and system releases. Consult the /target switch to learn more about suggested switches and how to generate code optimized for a particular release.
Run the MIDL compiler from the command line using the following command:
midl <options> filename.idl
where <options> represents the command-line options you want to use, and Filename.idl is the name of the MIDL file to compile.
A complete listing of MIDL compiler switches and options is available when you use the MIDL compiler /help and /? switches. The switches are organized by categories. For details, see the MIDL Command-Line Reference.
midl $(MIDL_OPTIMIZATION) ...