大网数据广告活动
Windows 系统接口

MIDL Compiler Options

· 52CE 我爱测

You can use the following command-line options to override some of the default behavior of the MIDL compiler and to choose optimizations appropriate for your application. For a complete listing of MIDL command-line options, see the MIDL Command-Line Reference.

You can use the following command-line options to override some of the default behavior of the MIDL compiler and to choose optimizations appropriate for your application. For a complete listing of MIDL command-line options, see the MIDL Command-Line Reference.

Command line switch Description
/acf Use to supply an explicit ACF filename. This switch also enables the use of different interface names in the IDL and ACF files.
/dlldata Specifies a filename for the generated DLL data file for a proxy DLL. The default filename is Dlldata.c.
/env Directs MIDL to generate stubs or a type library for a target environment.
/header, /h Specifies the name of the interface header file. The default name is that of the IDL file with an .h extension.
/iid Specifies an interface identifier filename that overrides the default interface identifier filename for a COM interface.
/lcid Provides full DBCS support so that you can use international characters in your input files, filenames, and directory paths.
/no_format_opt By default, to reduce code size, MIDL eliminates duplicate descriptors. This switch turns off this optimizing behavior.
/Oi, /Oic, /Oif Directs MIDL to use a fully interpreted marshaling method. The /Oic and /Oicf switches provide additional performance enhancements.
/out Specifies the directory to which the MIDL compiler writes output files. The output directory can be specified with a drive letter, an absolute pathname, or both. The default is that MIDL writes the files to the current directory.
/proxy Specifies the name of the interface proxy file for a COM interface. The default name is that of the IDL file plus "_p.c".
/tlb Specifies the name of the type library file. The default name is that of the IDL file, with a .tlb extension.

Related topics

MIDL Compilation

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。