Skip to content

Latest commit

 

History

History
85 lines (73 loc) · 1.86 KB

File metadata and controls

85 lines (73 loc) · 1.86 KB
title includelib (C++) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
vc-attr.includelib
dev_langs
C++
helpviewer_keywords
includelib attribute
ms.assetid cd90ea6e-5ae8-4f11-b8d1-662db95412b2
caps.latest.revision 10
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

includelib (C++)

Causes an .idl or .h file to be included in the generated .idl file.

Syntax

  
      [ includelib(  
   name.idl  
) ];  

Parameters

name.idl
The name of the .idl file that you want included as part of the generated .idl file.

Remarks

The includelib C++ attribute causes an .idl or .h file to be included in the generated .idl file, after the importlib statement.

Example

The following code is shown in a .cpp file:

// cpp_attr_ref_includelib.cpp  
// compile with: /LD  
[module(name="MyLib")];  
[includelib("includelib.idl")];  

Requirements

Attribute Context

Applies to Anywhere
Repeatable Yes
Required attributes None
Invalid attributes None

For more information, see Attribute Contexts.

See Also

IDL Attributes
Stand-Alone Attributes
import
importidl
include
importlib