|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
/MIDL (Specify MIDL Command Line Options)
All options for the conversion of an IDL file to a TLB file must be given in file; MIDL command-line options cannot be specified on the linker's command line. If /MIDL is not specified, the MIDL compiler will be invoked with only the IDL file name and no other options.
The file should contain one MIDL command-line option per line.
To set this linker option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the Linker folder.
Click the Embedded IDL property page.
Modify the MIDL Commands property.
To set this linker option programmatically