正在加载图片...
class CB public ISomeInterface, public IotherInterface 包容 protected: ULONG 作部对 public: CB OH 定Xm0he erface(const IID& iid, void **ppv) ULONG stdcall AddRefOr ULONG stdcall Release i //ISomeInterface members HRESULT stdcall Some Functionoi /IOtherInterface members HRESULT stdcall OtherFunction() HRESULT InitOF private ISomeInterface *m_pSomeInterface;包容: 外部对 象定义 class CB : public class CB : public ISomeInterface ISomeInterface , public , public IOtherInterface IOtherInterface { protected: protected: ULONG m_Ref; ULONG m_Ref; public: public: CB ( ); CB ( ); ~ CB (); ~ CB (); HRESULT __ HRESULT __stdcall QueryInterface stdcall QueryInterface(const IID& (const IID& iid, void ** , void **ppv); ULONG __ ULONG __stdcall AddRef stdcall AddRef(); ULONG __ ULONG __stdcall stdcall Release(); Release(); //ISomeInterface ISomeInterface members members HRESULT __ HRESULT __stdcall SomeFunction stdcall SomeFunction( ) ; //IOtherInterface IOtherInterface members members HRESULT __ HRESULT __stdcall OtherFunction stdcall OtherFunction( ) ; HRESULT Init(); HRESULT Init(); private : private : ISomeInterface ISomeInterface *m_pSomeInterface pSomeInterface; };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有