Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4096

Error Message

'a': interface is not a COM interface; will not be emitted to IDL

An interface definition that you may have intended as a COM interface was not defined as a COM interface and therefore will not be emitted to the IDL file.

See Interface Attributes for a list attributes that indicate an interface is a COM interface.

The following sample generates C4096:

// C4096.cpp
// compile with: /W1 /LD
#include "windows.h"

// [object, uuid("00000000-0000-0000-0000-000000000001")]
__interface a

[coclass, uuid("00000000-0000-0000-0000-000000000002")]
struct b : a
};   // C4096, remove coclass or uncomment object

Community Additions

© 2015 Microsoft