用嵌套类实现COM接口(续四 ULONG CDictionary: XDictionaryObj: QueryInterface( const IID& iid Did**ppvobj return m pParent->QueryInterface(iid, ppvobj); ULONG CDictionary: XDictionary Ob AddRefo return m pParent->AddRefo ULONG CDictionary: XDictionary Ob Release return m pParent->Release (用嵌套类实现COM接口 (续四 ) ULONG CDictionary::XDictionaryObj::QueryInterface(const IID& iid, void **ppvObj) { return m_pParent->QueryInterface(iid, ppvObj); } ULONG CDictionary::XDictionaryObj::AddRef() { return m_pParent->AddRef(); } ULONG CDictionary::XDictionaryObj::Release () { return m_pParent->Release (); }