Edit

Share via


tlbid import attribute

C++ Specific

Allows for loading libraries other than the primary type library.

Syntax

#import type-library-dll tlbid( number )

Parameters

number
The number of the type library in type-library-dll.

Remarks

If multiple type libraries are built into a single DLL, it's possible to load libraries other than the primary type library by using tlbid.

For example:

#import <MyResource.dll> tlbid(2)

is equivalent to:

LoadTypeLib("MyResource.dll\\2");

END C++ Specific

See also

#import attributes
#import directive