iCAx开思工具箱
标题:
link有问题,请援手,谢谢!!!!
[打印本页]
作者:
xyylove
时间:
2005-1-20 22:59
标题:
link有问题,请援手,谢谢!!!!
#include "stdafx.h"
#include "ToolKit.h"
#include <
roMenu.h>
#include <
roMenuBar.h>
#include <
roUtil.h>
extern "C" int user_initialize(int argc,char *arg[],
char *version,
char *build,wchar_t errbuf[80])
{
 
roError status;
uiCmdCmdId cmd_id;
 
roFileName mf;
 
roStringToWstring(mf,"usermsg.tex");
status=ProMenubarMenuAdd("Menu0","USER Menu0","Help",PRO_B_TRUE,mf);
status=ProMenubarmenuMenuAdd("Menu0","Menu1","USER Menu1",NULL,PRO_B_TRUE,mf);
status=ProCmdActionAdd("Menu2", (uiCmdCmdActFn)
TestAccessDefault
,
uiCmdPrioDefault, TestAccessDefault, PRO_B_TRUE, PRO_B_TRUE, [$cmd_id)]
status = ProMenubarmenuPushbuttonAdd ("Menu1", "Menu2",
"USER Menu2", "USER Menu2 help", NULL, PRO_B_TRUE,cmd_id, mf);
return 0;
}
link时出现错误
error C2065: 'TestAccessDefault' : undeclared identifier
请问是什么原因。这段程序我是照着论坛上抄下来,可就是有问题,请帮忙搞定一下,谢谢。
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3