Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 1.89 KB

File metadata and controls

61 lines (54 loc) · 1.89 KB
title Building an Attributed Program | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
tlb files
MIDL
MIDL, linker output
IDL files
tlb files, building attributed programs
.tlb files, building attributed programs
IDL files, building
attributes [C++], building type libraries and .idl files
.tlb files
.idl files, building
type libraries, linker options for building
ms.assetid 04997b5f-bf2c-46ec-b868-c4adebbef5f4
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Building an Attributed Program

After you put Visual C++ attributes into your source code, you may want the Visual C++ compiler to produce a type library and .idl file for you. The following linker options help you build .tlb and .idl files:

Some projects contain multiple independent .idl files. These are used to produce two or more .tlb files and optionally bind them into the resource block. This scenario is not currently supported in Visual C++.

In addition, the Visual C++ linker will output all IDL-related attribute information to a single MIDL file. There will be no way to generate two type libraries from a single project.

See Also

Concepts