Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.22 KB

embedded-idl.md

File metadata and controls

42 lines (30 loc) · 1.22 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: embedded_idl import attribute
embedded_idl import attribute
08/29/2019
embedded_idl
embedded_idl attribute
f1c1c2e8-3872-4172-8795-8d1288a20452

embedded_idl import attribute

C++ Specific

Specifies whether the type library is written to the .tlh file with the attribute-generated code preserved.

Syntax

#import type-library embedded_idl [ ( { "emitidl" | "no_emitidl" } ) ]

Parameters

"emitidl"
Type information imported from type-library is present in the IDL generated for the attributed project. This behavior is the default, and is in effect if you don't specify a parameter to embedded_idl.

"no_emitidl"
Type information imported from type-library isn't present in the IDL generated for the attributed project.

Example

// import_embedded_idl.cpp
// compile with: /LD
#include <windows.h>
[module(name="MyLib2")];
#import "\school\bin\importlib.tlb" embedded_idl("no_emitidl")

END C++ Specific

See also

#import attributes
#import directive