代码:
#include<iostream>
using namespace std;
#include "ProMenubar.h"
#include "ProMessage.h"
#include "ProMenu.h"
#include "ProUtil.h"
#include "ProToolkit.h"
#include "ProCore.h"
#include "ProMdl.h"
#include <ProPart.h>
#include "ProWindows.h"
#include "ProDrawing.h"
#pragma comment(lib,"netapi32")
#pragma comment(lib,"protk_dllmd")
extern "C" int user_initialize()
{
ProMessageClear();
return 0;
}
extern "C" void user_terminate()
{
}
int main()
{
ProError err= ProEngineerStart("D:\\creo\\Creo 3.0\\M010\\Parametric\\bin\\parametric.exe","");
}
创建了一个启动程序项目,总是报错,看到一个帖子,依赖包错了,更换后没有报错
每次都是忘记依赖包,再次记录下
protk_dllmd.lib
protkmd.lib
wsock32.lib
mpr.lib
kernel32.lib
psapi.lib
ws2_32.lib
netapi32.lib