midl /syntax_check
midl /Zs
midl /Zs filename.idl
midl /syntax_check filename.idl
The /syntax_check switch indicates that the compiler checks only syntax and does not generate output files. This switch overrides all other switches that specify information about output files.
You can also specify syntax-checking mode with the MIDL compiler option /Zs.
General MIDL Command-line Syntax, /Zs