Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.