iCAx开思工具箱
标题:
VS2005 proe二次开发基础问题
[打印本页]
作者:
虞之壤¤
时间:
2014-1-11 18:05
标题:
VS2005 proe二次开发基础问题
#include <ProToolkit.h>
#include <ProMenu.h>
#include <ProMenuBar.h>
#include <ProUtil.h>
void MyTest();
static uiCmdAccessState UserAccessTestMenu (uiCmdAccessMode);
extern "C" int user_initialize()
{
AfxEnableControlContainer();
ProError status;
ProName menumsgfile;
uiCmdCmdId cmd_id;
//在Help菜单的左边添加Test菜单
ProStringToWstring(menumsgfile,"usermsg.txt");
status = ProMenubarMenuAdd("Test","Test","Help", PRO_B_FALSE,menumsgfile);
status = ProCmdActionAdd("MyTest",(uiCmdCmdActFn)MyTest,uiCmdPrioDefault,UserAccessTestMenu,PRO_B_TRUE,PRO_B_TRUE,&cmd_id);
status = ProMenubarmenuPushbuttonAdd("Test","Hello","Hello","Hello Help",NULL,PRO_B_TRUE,cmd_id,menumsgfile);
return(0);
}
static uiCmdAccessState UserAccessTestMenu(uiCmdAccessMode access_mode)
{
return (ACCESS_AVAILABLE);
}
void MyTest()
{
AfxMessageBox(_T("祝贺你!测试成功!"));
}
小弟
出现这种基本错误,恳求大家帮忙
extern "C" void user_terminate()'AfxEnableControlContainer': identifier not found
1>d:\text\text\text.cpp(28) : error C3861: 'AfxMessageBox': identifier not found
1>d:\text\text\text.cpp(28) : error C3861: '_T': identifier not found
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3