cpp-docs/docs/preprocessor/tlbid.md at patch-3 · ugreg/cpp-docs · GitHub
Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 816 Bytes

File metadata and controls

46 lines (31 loc) · 816 Bytes
title tlbid
ms.date 10/18/2018
f1_keywords
tlbid
helpviewer_keywords
tlbid attribute
ms.assetid 54b06785-191b-4e77-a9a5-485f2b4acb09

tlbid

C++ Specific

Allows for loading libraries other than the primary type library.

Syntax

tlbid(number)

Parameters

number
The number of the type library in filename.

Remarks

If multiple type libraries are built into a single DLL, it 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