cOM接口 接国标识:ID class iunknown public: virtual HRESULT stdcall QueryInterface( const IID& id, void **ppv)=0 virtual ULONG stdcall AddRef(=0 virtual ULONG stdcall Released=0COM接口 ! 接口标识:IID ! IUnknown IUnknown接口: class IUnknown IUnknown { public: public: virtual HRESULT__ virtual HRESULT__stdcall QueryInterface stdcall QueryInterface( const IID& const IID& iid, void ** , void **ppv) = 0 ; ) = 0 ; virtual ULONG virtual ULONG __stdcall AddRef stdcall AddRef() = 0; () = 0; virtual ULONG virtual ULONG __stdcall stdcall Release() = 0; Release() = 0; };