includelib (C++)

导致在生成的 .idl 文件将包含的 .idl 或 .h 文件。

[ includelib( 
   name.idl 
) ];

参数

  • name.idl
    .idl 文件的名称作为生成的 .idl 文件的一部分,您要包括。

备注

includelib C++ 特性会在生成的 .idl 文件将包含的 .idl 或 .h 文件,在 importlib 语句之后。

示例

下面的代码在 .cpp 文件示:

// cpp_attr_ref_includelib.cpp
// compile with: /LD
[module(name="MyLib")];
[includelib("includelib.idl")];

要求

属性上下文

适用对象

任何位置

可重复

必需的特性

无效的特性

有关更多信息,请参见 属性上下文

请参见

参考

import

importidl

include (C++)

importlib

其他资源

IDL 特性

独立特性

Attributes Samples