关于新的未知问题
你好:在ARX 2008 SDK \ samples \ simpledynprops \ enum property . CPP中,有这个代码:
STDMETHODIMP CEnumProperty::SetCurrentValueData( /**/LONG_PTR objectID,
/**/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 *”的不明确转换
如何修改?谢谢大家!
**** Hidden Message ***** CMyOPM是从基类派生的吗?如果是这样,请尝试向下转换。 丹尼尔,看那张照片: 2. 3
.编译时,此代码错误:m_pNotify->更改(此);
错误 C2594:“参数”:从“CMyOPM *const”到“I未知 *”的不明确转换
页:
[1]