iCAx开思网

标题: proe新手的第一个程序问题? [打印本页]

作者: hjohn    时间: 2005-3-29 16:49
标题: proe新手的第一个程序问题?
extern "C" int user_initialize()
{
 &nbsproError status;
 &nbsproFileName message_file;
  uiCmdCmdId cmd_id;
  status=ProCmdActionAdd("ShowTest",(uiCmdCmdActFn)ShowMessageTest,uiCmdPrioDefault,AccessDefault,PRO_B_TRUE,PRO_B_TRUE,[$cmd_id)]
  status=ProMenubarmenuPushbuttonAdd("Tools","ShowMessageTest","ShowMessageTest","Active ShowMessageTest Menu",NULL,PRO_B_TRUE,cmd_id,ProStringToWstring(message_file,"Message2.txt"));
  return status;
}
  
extern "C" void user_terminate()
{
  AFX_MANAGE_STATE(AfxGetStaticModuleState());
}
  
static uiCmdAccessState AccessDefault(uiCmdAccessMode access_mode)
{
  return(ACCESS_AVAILABLE);
}
  
int ShowMessageTest()
{
  AfxMessageBox("ok run",MB_OK);
  return true;
}
以上是李世国pro/toolkit程序设计的Example2_1,编译后出现31个连接错误可忽略,我用的的野火2.0,菜单项中没有Utilities,只有Tools中有auxiliary application项 注册总是出现startup of application failed
我看Info出现
FILE: 6
TIME: 29-Mar-05 16:46:39
  
==================================================
Auxiliary application Information
==================================================
  
Application 0: Example2_1
Exec path: D:\proe\solid\Example2_1\Debug\Example2_1.dll
Text path: D:\proe\solid\Example2_1\Debug\
Version 26 - 2004320
Application is not running.
  
这是怎么回事 望高手帮我跨过这到坎!!!!!!!!!
作者: xiaofeng998023    时间: 2005-3-30 16:02
这个问题你可以参照精华区里的有关vc设置的一些帖子,如果设置没问题应该不会出现上述问题




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3