For the following
BEGIN_COM_MAP(I _Command)
COM_INTERFACE_E NTRY(ICommand)
COM_INTERFACE_E NTRY(IDispatch)
COM_INTERFACE_E NTRY(IConnectio nPointContainer )
COM_INTERFACE_E NTRY_IMPL(IConn ectionPointCont ainer)
END_COM_MAP()
I get the error
error C2440: 'static_cast' : cannot convert from
'I_Command::_Co mMapClass *' to 'IDispatch *'
ICommand is an interface that we defined and that implements
IDispatch.
It worked fine in VS6 but fails after converting to VS2005. It turns
out that there is already an ICommand interface defined in oledb.h
which is part of the VS2005 SDK.
How can I specify to use MY ICommand instead of the one in oledb??
Thanks for any help
BEGIN_COM_MAP(I _Command)
COM_INTERFACE_E NTRY(ICommand)
COM_INTERFACE_E NTRY(IDispatch)
COM_INTERFACE_E NTRY(IConnectio nPointContainer )
COM_INTERFACE_E NTRY_IMPL(IConn ectionPointCont ainer)
END_COM_MAP()
I get the error
error C2440: 'static_cast' : cannot convert from
'I_Command::_Co mMapClass *' to 'IDispatch *'
ICommand is an interface that we defined and that implements
IDispatch.
It worked fine in VS6 but fails after converting to VS2005. It turns
out that there is already an ICommand interface defined in oledb.h
which is part of the VS2005 SDK.
How can I specify to use MY ICommand instead of the one in oledb??
Thanks for any help
Comment