/o switch
The /o switch redirects output, such as error messages and warnings, from standard output to the specified file.
midl /o outputfile
-
outputfile
-
Specifies the name of the file to which the MIDL compiler will redirect output such as error messages and warnings.