Compartilhar via


/MIDL (Specify MIDL Command Line Options)

 

The latest version of this topic can be found at -MIDL (Specify MIDL Command Line Options).

MIDL:@file

  
## Remarks  
 where:  
  
 `file`  
 The name of the file that that contains [MIDL command line options](https://msdn.microsoft.com/library/windows/desktop/aa366839).  
  
## Remarks  
 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  
  
1.  Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
  
2.  Click the **Linker** folder.  
  
3.  Click the **Embedded IDL** property page.  
  
4.  Modify the **MIDL Commands** property.  
  
### To set this linker option programmatically  
  
-  See [MidlCommandFile](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.MidlCommandFile?qualifyHint=False&autoUpgrade=True).  
  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)   
 [/IDLOUT (Name MIDL Output Files)](../Topic/-IDLOUT%20\(Name%20MIDL%20Output%20Files\).md)   
 [/IGNOREIDL (Don't Process Attributes into MIDL)](../Topic/-IGNOREIDL%20\(Don't%20Process%20Attributes%20into%20MIDL\).md)   
 [/TLBOUT (Name .TLB File)](../Topic/-TLBOUT%20\(Name%20.TLB%20File\).md)   
 [Building an Attributed Program](../Topic/Building%20an%20Attributed%20Program.md)