Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'class': a managed or WinRT class cannot be a coclass
The coclass attribute cannot be used with managed or WinRT classes.
The following sample generates C3734 and shows how to fix it:
// C3734.cpp
// compile with: /clr /c
[module(name="x")];
[coclass]
ref class CMyClass { // C3734 remove the ref keyword to resolve
};