Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.59 KB

tlbid-specify-resource-id-for-typelib.md

File metadata and controls

41 lines (27 loc) · 1.59 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /TLBID (Specify Resource ID for TypeLib)
/TLBID (Specify Resource ID for TypeLib)
11/04/2016
/tlbid
VC.Project.VCLinkerTool.TypeLibraryResourceID
tlb files, specifying resource ID
-TLBID linker option
.tlb files, specifying resource ID
/TLBID linker option
TLBID linker option
type libraries, specifying resource ID
434b28a2-4656-4d52-ac82-8b18bf486fb2

/TLBID (Specify Resource ID for TypeLib)

/TLBID:id

Arguments

id
A user-specified value for a linker-created type library. It overrides the default resource ID of 1.

Remarks

When compiling a program that uses attributes, the linker will create a type library. The linker will assign a resource ID of 1 to the type library.

If this resource ID conflicts with one of your existing resources, you can specify another ID with /TLBID. The range of values that you can pass to id is 1 to 65535.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > Embedded IDL property page.

  3. Modify the TypeLib Resource ID property.

To set this linker option programmatically

  1. See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.TypeLibraryResourceID%2A.

See also

MSVC linker reference
MSVC Linker Options