नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'interface' : an interface can only inherit from another interface
Remarks
An interface may only inherit from another interface and may not inherit from a class or struct.
Example
The following example generates C2810:
// C2810.cpp
#include <unknwn.h>
class CBase1 {
public:
HRESULT mf1();
int m_i;
};
[object, uuid="40719E20-EF37-11D1-978D-0000F805D73B"]
__interface IDerived : public CBase1 { // C2810
// try the following line instead
// __interface IDerived {
HRESULT mf2(void *a);
};
struct CBase2 {
HRESULT mf1(int a, char *b);
HRESULT mf2();
};