Share via


Compiler Warning (level 1) C4186

#import attribute 'attribute' requires count arguments; ignored

A #import attribute has the wrong number of arguments.

Example

// C4186.cpp
// compile with: /W1 /c
#import "stdole2.tlb" no_namespace("abc") rename("a","b","c")  // C4186

The no_namespace attribute takes no arguments. The rename attribute takes only two arguments.