For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

C++ Specific

Disables automatic exclusion.

include("Name1"[,"Name2", ...])  


First item to be forcibly included.

Second item to be forcibly included (if necessary).

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 items have been excluded, as indicated by Compiler Warning (level 3) C4192, and they should not have been, this attribute can be used to disable the automatic exclusion. This attribute can take any number of arguments, each being the name of the type-library item to be included.

END C++ Specific

#import Attributes
#import Directive