embedded_idl
C/C++ Preprocessor Reference
embedded_idl

C++ Specific

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

embedded_idl[("param")]
param

Can be one of two values:

  • emitidl: Type information imported from the typelib will be present in the IDL generated for the attributed project. This is the default and will be in effect if you do not specify a parameter to embedded_idl.

  • no_emitidl: Type information imported from the typelib will not be present in the IDL generated for the attributed project.

// 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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
embedded_idl not default      alamaison   |   Edit   |   Show History
What is says above should not be interpreted as meaning that embedded_idl is implicitly specificied for all #import statements. It is not.

What I think they are trying to say above is that, when embedded_idl *is* specified, it is the "emitidl" version that is default if the parameter is not explicitly specified. This confused me for a bit.
Processing
Page view tracker