Kompilatorfel C3463

"type": typen tillåts inte i attributet "implementeringar"

Anmärkningar

En ogiltig typ skickades till implementeringsattributet . Du kan till exempel skicka ett gränssnitt till implements, men du kan inte skicka en pekare till ett gränssnitt.

Example

I följande exempel genereras C3463.

// C3463.cpp
// compile with: /c
#include <windows.h>
[object, uuid("00000000-0000-0000-0000-000000000001")]
__interface X {};

typedef X* PX;

[ coclass, uuid("00000000-0000-0000-0000-000000000002"), implements(interfaces=PX) ]   // C3463
// try the following line instead
// [ coclass, uuid("00000000-0000-0000-0000-000000000002"), implements(interfaces=X) ]
class CMyClass : public X {};