超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
How to release ISldWorks via OLE automation?
ow to release ISldWorks via OLE automation?
It maybe has some problems when I close the SolidWorks session via the following code.
My code as follows:
// code 2 start
ISldWorks m_pSldWorks;
// connects to an already running instance of SW
//?????????????
// or will start SW if not already running
m_pSldWorks.CreateDispatch(_T("SldWorks.Application"));
//???????
// close the SolidWorks session
m_pSldWorks.ExitApp ();
m_pSldWorks.DetachDispatch();
m_pSldWorks.ReleaseDispatch();
m_pSldWorks.m_lpDispatch = NULL;
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|