马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
extern "C" int user_initialize()
{
 roError status;
 roFileName 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.
这是怎么回事 望高手帮我跨过这到坎!!!!!!!!! |