标题: 请高人帮我看看程序错在哪里 [打印本页] 作者: tony998 时间: 2010-11-26 18:33
sbsbsbsbssbsbsbsbsb作者: xmldmeng 时间: 2010-11-26 23:34 标题: 请高人帮我看看程序错在哪里 程序的目的是通过对话框给工作部件添加一个文件属性。编译时提示错在红色部份那里。不知错在哪里,请高人指点。
错误提示:(error C2440: 'initializing' : cannot convert from '' to 'int (__cdecl *)(int,void *,struct UF_STYLER_item_value_type_s *)'
None of the functions with this name in scope match the target type)
static UF_MB_styler_actions_t actions[] = {
{ "att.dlg", NULL, MY_cbs, UF_MB_STYLER_IS_NOT_TOP },
{ NULL, NULL, NULL, 0 } /* This is a NULL terminated list */
};
extern int LaunchProDesignDialog( int *response )
{
int error_code = 0;
if ( ( error_code = UF_initialize() ) != 0 )
return (0) ;
if ( ( error_code = UF_STYLER_create_dialog ( "att.dlg",
MY_cbs, /* Callbacks from dialog */
MY_CB_COUNT, /* number of callbacks*/
NULL, /* This is your client data */
response ) ) != 0 )
{
char fail_message[133];
/* Get the user function fail message based on the fail code.*/
UF_get_fail_message(error_code, fail_message);
UF_UI_set_status (fail_message);
printf ( "%s\n", fail_message );
}
UF_terminate();
return (error_code);
}
int MY_ok_fun(int dialog_id,
char *client_data,
UF_STYLER_item_value_type_p_t callback_data)
{