Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.24 KB

File metadata and controls

36 lines (24 loc) · 1.24 KB
description Learn more about: include() import attribute
title include() import attribute
ms.date 08/29/2019
f1_keywords
include()
helpviewer_keywords
include() attribute
ms.assetid 86c9dcb2-d9e0-4fd5-97d7-0bb3e23d6ecc

include() import attribute

C++ Specific

Disables automatic exclusion.

Syntax

#import type-library include( "Name1" [,"Name2" ... ] )

Parameters

Name1
First item to be forcibly included.

Name2
Second item to be forcibly included (if necessary).

Remarks

Type libraries may include definitions of items defined in system headers or other type libraries. #import attempts to avoid multiple definition errors by automatically excluding such items. If some items shouldn't be excluded automatically, you may see Compiler Warning (level 3) C4192. You can use this attribute to disable the automatic exclusion. This attribute can take any number of arguments, one for each name of a type-library item to be included.

END C++ Specific

See also

#import attributes
#import directive