includelib (C++)
Causes an .idl or .h file to be included in the generated .idl file.
Syntax
[ includelib(name.idl) ];
Parameters
name.idl
The name of the .idl file that you want included as part of the generated .idl file.
Remarks
The includelib C++ attribute causes an .idl or .h file to be included in the generated .idl file, after the importlib
statement.
Example
The following code is shown in a .cpp file:
// cpp_attr_ref_includelib.cpp
// compile with: /LD
[module(name="MyLib")];
[includelib("includelib.idl")];
Requirements
Attribute context | Value |
---|---|
Applies to | Anywhere |
Repeatable | Yes |
Required attributes | None |
Invalid attributes | None |
For more information, see Attribute Contexts.
See also
IDL Attributes
Stand-Alone Attributes
import
importidl
include
importlib
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for