Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.92 KB

midl-specify-midl-command-line-options.md

File metadata and controls

47 lines (31 loc) · 1.92 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /MIDL (Specify MIDL Command Line Options)
/MIDL (Specify MIDL Command Line Options)
09/05/2018
/midl
VC.Project.VCLinkerTool.MidlCommandFile
-MIDL linker option
MIDL
/MIDL linker option
MIDL linker option
MIDL, command line options
22dc259e-b34c-4ed3-a380-4beb734482c1

/MIDL (Specify MIDL Command Line Options)

Specifies a response file for MIDL command line options

Syntax

/MIDL:@file

Arguments

file
The name of the file that contains MIDL command line options.

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 Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > Embedded IDL property page.

  3. Modify the MIDL Commands property.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.MidlCommandFile%2A.

See also

MSVC linker reference
MSVC Linker Options
/IDLOUT (Name MIDL Output Files)
/IGNOREIDL (Don't Process Attributes into MIDL)
/TLBOUT (Name .TLB File)
Building an Attributed Program