你好:
在ARX 2008 SDK \ samples \ simpledynprops \ enum property . CPP中,有这个代码:
- STDMETHODIMP CEnumProperty::SetCurrentValueData( /*[in]*/LONG_PTR objectID,
- /*[in]*/const VARIANT varData)
在ARX2008中,我使用动态属性向导,得到这段代码:
- STDMETHODIMP CMyOPM::SetCurrentValueData (IUnknown *pUnk, const VARIANT varData) {
- if ( pUnk == NULL )
- return (E_INVALIDARG) ;
- // TODO: add your code here
- //----- In case of an enum property, call the following to update the physical combobox
- m_pNotify->OnChanged (this) ;
- return (S_OK) ;
- }
编译,此代码上的错误:m _ pNotify-> on changed(this);
错误c 2594:“argument”:从“CMyOPM *const”到“IUnknown *”的不明确转换
如何修改?谢谢大家!
本帖以下内容被隐藏保护;需要你回复后,才能看到! 游客,如果您要查看本帖隐藏内容请 回复 |