This documentation is archived and is not being maintained.

Compiler Error C2771

#import only permitted at global or namespace scope

The #import directive is not allowed in, for example, a function or structure.

Show: