description | title | ms.date | ms.topic | ms.assetid | f1_keywords | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: MIDL Property Pages |
MIDL Compiler Property Pages |
07/24/2019 |
article |
57498a01-fccc-4a0e-a036-6ff702f83126 |
|
The MIDL property pages are available as an item property on an .IDL file in a C++ project that uses COM. Use them to configure the MIDL Compiler. For information on how to programmatically access MIDL options for C++ projects, see xref:Microsoft.VisualStudio.VCProjectEngine.VCMidlTool object. See also General MIDL Command-line Syntax.
Specifies one or more defines, including MIDL macros (/D)[macros]).
Specifies one or more directories to add to the include path (/I[path]).
Specify the directory containing the Windows.Foundation.WinMD file (/metadata_dir [path]).
Enable Windows Runtime semantics to create Windows metadata file (/winrt).
Ignore the current and the INCLUDE directories (/no_def_idir).
Forces compatibility with mktyplib.exe version 2.03 (/mktyplib203).
Selects the strictness of the MIDL code errors (/W).
Choices
- 1
- 1
- 2
- 3
- 4
Enables MIDL to treat all warnings as errors (/WX).
Suppress the display of the startup banner and information message (/nologo).
Specifies the default character type of the C compiler that will be used to compile the generated code. (/char signed|unsigned|ascii7).
Choices
- Signed - Signed
- Unsigned - Unsigned
- Ascii - Ascii
Specifies which environment to target (/env arm32|win32|ia64|x64).
Choices
- Not Set - Win32
- Microsoft Windows 32-bit - Win32
- Microsoft Windows 64-bit on Itanium - IA64
- Microsoft Windows ARM - ARM
- Microsoft Windows ARM64 - ARM64
- Microsoft Windows 64-bit on x64 - X64
Generate fully interpreted stubs with extensions and stubless proxies for object interfaces (/Oicf, /Oif ).
Suppress compiler warning messages (/no_warn).
Allow selected ACF attributes in the IDL file (/app_config).
Specifies the LCID for input files, file names and directory paths (/lcid DECIMAL).
Run multiple instances at the same time.
Specifies the output directory (/out [directory]).
Specifies the name of the generated metadata file (/winmd filename).
Specifies the name of the generated header file (/h filename).
Specifies the name of the DLLDATA file (/dlldata filename).
Specifies the name for the Interface Identifier file (/iid filename).
Specifies the name of the proxy file (/proxy filename).
Specify not to generate a type library ([/notlb] for no).
Specifies the name of the type library file (/tlb filename).
Generate client stub file only (/client [stub|none]).
Choices
- Stub - Stub
- None - None
Generate server stub file only (/server [stub|none]).
Choices
- Stub - Stub
- None - None
Specify the client stub file (/cstub [file]).
Specify the server stub file (/sstub [file]).
Specifies the type library file format ([/oldtlb|/newtlb]).
Choices
- NewFormat - New Format
- OldFormat - Old Format
Specifies switches to pass to C compiler preprocessor (/cpp_opt switches).
Specifies one or more undefines, including MIDL macros (/U [macros]).
Select error checking option ([/error all|none]).
Choices
- EnableCustom - All
- All - All
- None - None
Check for out of memory errors (/error allocation).
Check size vs transmission length specification (/error bounds_check).
Check enum values to be in allowable range (/error enum).
Check ref pointers to be non-null (/error ref).
Emit additional check for server side stub data validity (/error stub_data).
Prepend the 'ABI' namespace to all types. (/ns_prefix).
Generate additional information to validate parameters (/robust | /no_robust).
Specifies the packing level of structures in the target system (/ZpN).
Choices
- Not Set - Not Set
- 1 Byte - Zp1
- 2 Byte - Zp2
- 4 Byte - Zp4
- 8 Byte - Zp8
Redirects output from screen to a file (/o file).
Set the minimum target system (/target STRING).