IDispEventSimpleImpl
-
Hi, I try to include #include "stdafx.h" class CSofphoneView : public CFormView , public IDispEventSimpleImpl<1, CSofphoneView,&DIID__IUccEndpointEvents> in App & View class its working when I create new c++ class “CCallcontrol” without base class and include #include "stdafx.h" class CCallcontrol : public IDispEventSimpleImpl<1, CCallcontrol, &DIID__IUccEndpointEvents> but its gets below error. Give me the suggestion . c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(4211) : error C2039: '_GetSinkMap' : is not a member of 'CCallcontrol' 1> d:\shanthakumar\sofphone\sofphone\callcontrol.h(9) : see declaration of 'CCallcontrol' 1> c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(4210) : while compiling class template member function 'HRESULT ATL::IDispEventSimpleImpl::Invoke(DISPID,const IID &,LCID,WORD,DISPPARAMS *,VARIANT *,EXCEPINFO *,UINT *)' 1> with 1> [ 1> nID=1, 1> T=CCallcontrol, 1> pdiid=& DIID__IUccEndpointEvents 1> ] 1> d:\shanthakumar\sofphone\sofphone\callcontrol.h(11) : see reference to class template instantiation 'ATL::IDispEventSimpleImpl' being compiled 1> with 1> [ 1> nID=1, 1> T=CCallcontrol, 1> pdiid=& DIID__IUccEndpointEvents 1> ] in “stdafx.h” included #include // MFC socket extensions #include // MFC declaration for CTreeView #include // ATL Base #include // ATL COM #include // for CAtlMap #include Thanks&Regards shakumar