一个错误
bobqi 2002-06-03 11:20:47 BEGIN_CONNECTION_POINT_MAP(CPolyCtl)
CONNECTION_POINT_ENTRY(IID_IPropertyNotifySink)
CONNECTION_POINT_ENTRY(IID__IPolyCtlEvents)
END_CONNECTION_POINT_MAP()
对于CONNECTION_POINT_ENTRY( IID_IPolyCtlEvents )报下面这个错
polyctl.h(87) : error C2440: 'static_cast' : cannot convert from 'class CPolyCtl *' to 'class ATL::_ICPLocator<&struct _GUID IID__IPolyCtlEvents> *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
CPolyCtl是我的atl 的 Full Control 对象
IID_IPolyCtlEvents是连接点的定义