Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
'class': a managed or WinRT class cannot be a coclass
Remarks
The coclass attribute cannot be used with managed or WinRT classes.
Example
The following example 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
};