Creo 3.0 Toolkit Fatal Error encountered
Hi everyone, I've been having a big problem trying to display a model in creo with TOOLKIT on my computer.Following is my programm:
#include "stdafx.h"
#include "ProToolkit.h"
#include "ProCore.h"
#include "ProMdl.h"
#include "ProUtil.h"
#include "ProWindows.h"
#include <ProTKRunTime.h>
int main()
{
char *a_char_ptr;
a_char_ptr= "C:\\Program Files\\PTC\\Creo 3.0\\M010\\Parametric\\bin\\parametric.bat";
ProError i= ProEngineerStart(a_char_ptr,"");
ProError status;
ProPath Mdlpath;
ProType MdlType;
ProMdl *Mdl;
ProMdlName MdlName;
int *w_id;
ProStringToWstring(Mdlpath,"C:\\Users\\fsd_proe\\Documents\\bauteil1.prt");
status =ProMdlFiletypeLoad(Mdlpath,PRO_MDLFILE_UNUSED,PRO_B_FALSE, Mdl);
status=ProMdlTypeGet(Mdl,(ProMdlType*)&MdlType);
status=ProMdlMdlnameGet(Mdl,MdlName);
status= ProObjectwindowMdlnameCreate(MdlName,MdlType,w_id);
status=ProMdlDisplay(Mdl);
ProTKPrintf("Well done!");
return 0;
}
The function "ProEngineerStart" works well, I can open creo without problem. However when I try to display a model, a window pops up that says:
Fatal error encountered. A traceback has been written to C:\Users\fsd_proe\Desktop\Toolkit\17Console1\17Console1\traceback.log. Please sent it to technical support.
According to this link Re: Creo 2.0 Parametric Fatal Error encountered, I have insert a config.pro file in the directory containing , i.e. C:\Users\fsd_proe\Desktop\Toolkit\17Console1\17Console1. But it doesn't work. In the directory C:\Users\Public\Documents, it doesn't work either. My computer is belonging to my university and Creo is installed under username as shown above and I work also in under this username.
My OS is win7 64bit and my image card is Intel(R) G45/G43 Express Chipset.
Any help would be much appreciated! Thanks a lot!
Christian
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP