在用CWMPControl 类时,我的是vc2008 ,里面的CWMPControls的类是继承自CWnd,
m_control=static_cast(m_player.get_controls());
执行这个语句是提示错误:
rror C2440: 'static_cast' : cannot convert from 'LPDISPATCH' to 'CWMPControls'
在网上查了很多资料,说的是这个类继承自CWnd的话,不能转换格式,所以我自己添加了个类 CWMPControls(这个类是继承自COleDispatchDriver的),
但是还是出现了这个同样的错误:
rror C2440: 'static_cast' : cannot convert from 'LPDISPATCH' to 'CWMPControls'
不知道怎么办了 ,求解答。在线等。