// MyObject.h: interface for the MultiInterface class. // ///////////////////////////////////////////////////////////////////// #if !defined(MYOBJECT_H) #define MYOBJECT_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include class IFoo : public IUnknown { public: virtual HRESULT __stdcall Func1() = 0; virtual HRESULT __stdcall Func2(int inonly) = 0; }; class IGoo : public IUnknown { public: virtual HRESULT __stdcall Gunc() = 0; }; class CMyObject : public IFoo, public IGoo { public: CMyObject(); virtual ~CMyObject(); private: int m_iInternalValue; public: // IUnknown methods HRESULT __stdcall QueryInterface( REFIID riid, void **ppvObject); unsigned long __stdcall AddRef(); unsigned long __stdcall Release(); // IFoo HRESULT __stdcall Func1(); HRESULT __stdcall Func2(int inonly); // IGoo HRESULT __stdcall Gunc(); }; #endif // !defined(MYOBJECT_H)