'class': マネージドまたは WinRT クラスは、コクラスにすることはできません
coclass 属性は、マネージドまたは WinRT クラスでは使用できません。
次の例では C3734 が生成され、その修正方法が示されています。
// C3734.cpp
// compile with: /clr /c
[module(name="x")];
[coclass]
ref class CMyClass { // C3734 remove the ref keyword to resolve
};