|
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
extern"C"int user_initialize()
{
ProError status;
//用户接口程序
ProFileName message_file;
uiCmdCmdId cmd_id1;
ProFileName MsgFile;
ProStringToWstring(MsgFile,"Message2.txt");
status = ProMenubarMenuAdd("CHECK","CHECK","Utilities",PRO_B_TRUE,MsgFile);
status = ProCmdActionAdd("ShowTest1",(uiCmdCmdActFn)messagebox,uiCmdPrioDefault,AccessDefault,PRO_B_TRUE,PRO_B_TRUE,&cmd_id1);
status = ProMenubarmenuPushbuttonAdd("check","messagebox","messagebox","active messagebox menu",NULL, PRO_B_TRUE,cmd_id1,ProStringToWstring(message_file,"Message2.txt"));
return status;
}
extern"C"void user_terminate()有个messagebox出错。。显示为无此代码??? |
|