/o switch

The /o switch redirects output, such as error messages and warnings, from standard output to the specified file.

midl /o outputfile

Switch Options

outputfile

Specifies the name of the file to which the MIDL compiler will redirect output such as error messages and warnings.

See also

General MIDL Command-line Syntax