查看单个帖子
旧 2007-05-24, 11:23 AM   #2
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: Which functions of ISldWorks should I use to catch the error?

R:
Hello,
Earlier I wrote:
> As a result SolidWorks will close down. As part of the shutdown it will unload add-ins.
If your SW_DCI application is a COM-based add-in, the:
ISwAddin:isconnectFromSW
method will be the right place to notify your PC-DIMS software that SolidWorks is no longer available.
This method will be called when SolidWorks unloads an add-in.
Another solution that comes to mind is using Win32 API functions to obtain the process handle for sldworks.exe and use WaitForSingleObject to wait in a separate thread for the SolidWorks process to terminate. However, this is outside the scope of the SolidWorks API.
Regards,
Frank
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖