iCAx开思工具箱
标题:
问一个关于函数UF_UI_create_filebox()的问题
[打印本页]
作者:
ptjmy
时间:
2004-4-20 22:59
标题:
问一个关于函数UF_UI_create_filebox()的问题
rc=UF_UI_create_filebox("My prompt","My dialog title",filter_string,"my_default_name",filename,[$response)]
请问点击确定、取消,response值分别是多少?
点击确定后,得到的filename,包含路径吗?我想在函数uF_PART_open()中使用filename
下面是我写的代码:
extern void ufusr( char *param, int *returnCode, int rlen )
{
char filter_string[132]="*";
char filename[132];
int response;
int rc=0;
char msg[132];
int errorCode=UF_initialize();
rc=UF_UI_create_filebox("Open File","打开文件",filter_string," ",filename,[$response)]
if(rc)
{
UF_get_fail_message(rc,msg);
printf("error=%s\n",msg);
}
UF_PART_load_status_t error_status;
tag_t part;
UF_PART_open(filename,[$part,&error_status)]
if(part==NULL_TAG)
{
uc1601("打开part错误",1);
UF_PART_close_all();//退出之前关闭所有part
UF_terminate();
return;
}
else
{
UF_PART_set_display_part(part);
UF_terminate();
}
/* Print out any error messages */
 
rintErrorMessage( errorCode );
}
编译没错误,但是弹出“打开part"错误,哪位仁兄帮我看看,错在哪里,并提出意见,先谢了!
作者:
spline
时间:
2004-4-21 09:17
UF_UI_create_filebox("Open File","打开文件",filter_string," ",filename,&response)
函数中response Output UF_UI_OK: OK was selected
UF_UI_CANCEL: CANCEL was selected
filename是包含路径和文件名的
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3