नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class': coclass does not implement a COM interface or pseudo-interface
Remarks
A class marked with the coclass attribute did not implement an interface.
Example
The following example generates C4997:
// C4997.cpp
// compile with: /WX
// to resolve this C4997, uncomment all code
#include <objbase.h>
[ object ]
__interface I {
HRESULT func();
};
[ coclass ]
struct C /*: I*/ {
/*
HRESULT func() {
return S_OK;
}
*/
}; // C4997