// Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved #ifndef _dispexa_h_ #define _dispexa_h_ #include class CDispExArray { public: CDispExArray() { }; ~CDispExArray() { }; void Attach(IDispatchEx* pDispEx) { m_piDispEx = pDispEx; }; void Detach() { m_piDispEx = NULL; }; HRESULT HrGetLength(ULONG* pLength); HRESULT HrGetElement(ULONG index, LPVARIANT pVar); private: CComPtr m_piDispEx; }; #endif