|
vc++6.0中的代码:
#include "stdafx.h"
#include "Main.h"
extern "C" DLLExport void ufsta (char *param, int *returnCode, int reln)
{
if ((UF_initialize())!=0) return; //初始化
int error_code;
if((error_code=UF_MB_add_actions(action_table))!=0) //注册UG应用
{
char fail_message[133];
UF_get_fail_message(error_code,fail_message);
AfxMessageBox(fail_message,1);
}
UF_terminate(); //终止
return;
}
编译时出现两处错误:
1、cpp(7):error c2144:syntax error :missing';'before type'void';
2、cpp(7):fatal error c1004:unexpected end of file found;
求大神帮忙解决,谢谢! |
|