|
小弟初学proe5.0二次开发,用的是VC2008,想在dialog中点击按钮启动proe,程序如下:
void CValueParametricDesignDlg::OnButtonStartProe()
{
// TODO: 在此添加控件通知处理程序代码
char proe_command[PRO_PATH_SIZE]="D:\PTC\proe5\proe5.0\bin\proe1.bat";
ProError i=ProEngineerStart(proe_command,"");
if (i!=PRO_TK_NO_ERROR)
{
CString s;
s.Format(_T("Start Error:%d"),i);
AfxMessageBox(s);
}
}
但是调试结果是proe_command 0x0012f440 "DTCproe5proe5.0inproe1.bat" char [260]
this 0x0012fe28 {CValueParametricDesignDlg hWnd=0x0026144c} CValueParametricDesignDlg * const
proe5启动不开处于死机状态,请各位高手帮帮忙,找找是什么原因,谢谢!!!!! |
|