|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
void CDlgSearch1:aramsGet(ProParameter **p_data)
{
 roMdl model;
 roModelitem modelitem;
 roMdlCurrentGet([$model)]
 roMdlToModelitem(model, [$modelitem)]
 roArrayAlloc(0,sizeof(ProParameter),1,(ProArray*)p_data);
 roParameterVisit(&modelitem,
(ProParameterFilter)ParameterFilterFn,
(ProParameterAction)ParameterActionFn,(ProAppData)[$p_data)]
}
ProError CDlgSearch1:arameterActionFn(ProParameter *Param, ProError status, ProAppData app_data)
{
 roArray *p_array;
p_array = (ProArray*)((ProParameter**)app_data)[0];
status=ProArrayObjectAdd(p_array, PRO_VALUE_UNUSED, 1,Param );
return (PRO_TK_NO_ERROR);
}
ProError CDlgSearch1:arameterFilterFn(ProParameter *Param, ProError status, ProAppData app_data)
{
 roCharLine strtmp;
 roWstringToString(strtmp, Param->id);
if (strcmp(strtmp,"DESCRIPTION")==0 ||strcmp(strtmp,"MODELED_BY")==0 )
return (PRO_TK_CONTINUE);
else
return (PRO_TK_NO_ERROR);
}
编译连接时显示错误为:
E:\NEWLJGL\DlgSearch1.cpp(417) : error C2440: 'type cast' : cannot convert from '' to 'enum ProErrors (__cdecl *)(struct proparameter *,void *)'
None of the functions with this name in scope match the target type
E:\NEWLJGL\DlgSearch1.cpp(418) : error C2440: 'type cast' : cannot convert from '' to 'enum ProErrors (__cdecl *)(struct proparameter *,enum ProErrors,void *)'
None of the functions with this name in scope match the target type |
|