proe二次开发ProMdlLoad()函数调用失败
以下是函数说明:
ProMdlLoad (
ProPath full_path
/* (In)
The full path of the model to be retrieved, including the name, and optionally the location and extension.
*/
ProMdlType type
/* (In)
The type of the model to retrieve, or PRO_MDL_UNUSED if full_path includes an extension.
*/
ProBoolean ask_user_about_reps
/* (In)
If TRUE, the Open Rep dialog may be presented, allowing the user to specify which simplified representation of the model should be retrieved.
*/
ProMdl* p_handle
/* (Out)
The handle to the retrieved model
*/
这次程序调用的地方ProMdlLoad(mdlName,mType,PRO_B_FALSE,&mdl);mdlName:全路径文件名(含扩展名)
mType:文件类型(如asm,prt,drw等)
mdl:引用的模型指针,需要传出的值。
现在的出现的问题是,有的proe三维模型图可以正常调用该函数,并且mdl有值,但是有的proe模型图在调用该函数时出错,中断调试,指到_CRT_DEBUGGER_HOOK(int _REServed=544829131)想问下有没有遇到过这种问题的大侠,请不吝赐教。