//---------ToolKit app.h
#include <roToolkit.h>
#include <roMenu.h>
#include <roMenuBar.h>
#include <roUtil.h>
/*-----------------------*\
FUNCTION :user_initialize()
PURPOSE roToolKit 程序的总入口,完成初始化工作
\*-----------------------*/
extern "C" int user_initialize(
int argc,
char *argv[],
char *vertion,
char *build,
wchar_t errbuf[80]).
{
ProError status;
uiCmdCmdId cmd_id;
ProFileName mf;
ProStringToWstring(mf,"usermsg.txt");
status=ProMenuBarMenuAdd("Menu0","USERMenu0","Help",PRO_B_TRUE,mf);
status= ProMenubarmenuPushbuttonAdd ("Menu1", "Menu2","USER Menu2", "USER Menu2 help", NULL, PRO_B_TRUE,cmd_id, mf);
return 0;
}
/*-----------------------*\
FUNCTION :user_terminate()
PURPOSE roToolKit 应用程序结束
\*-----------------------*/
extern "C" void user_terminate()
{
}
我是初学者,在调试楼主的程序如上。为什么会出现下面这个错误????希望高手指点一下 谢了
--------------------Configuration: Toolkit - Win32 Debug--------------------
Creating Type Library...
Processing F:\PROGRAM\TOOLKIT\Toolkit.odl
Toolkit.odl
Processing D:\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing D:\VC98\INCLUDE\objidl.idl
objidl.idl
Processing D:\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing D:\VC98\INCLUDE\wtypes.idl
wtypes.idl
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
Toolkit.cpp
Linking...
LINK : fatal error LNK1104: cannot open file "protk_dll.lib"
执行 link.exe 时出错.
Toolkit.dll - 1 error(s), 0 warning(s) |