Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4186

#import attribute 'attribute' requires count arguments; ignored

A #import attribute has the wrong number of arguments.

// 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.

Community Additions

ADD
Show:
© 2015 Microsoft