几何尺寸与公差论坛

 找回密码
 注册
查看: 2653|回复: 1

Are you sure that release ISldWorks or IModelDoc2(IObject defined in swdisp.h

[复制链接]
发表于 2007-9-4 13:51:19 | 显示全部楼层 |阅读模式
Are you sure that release ISldWorks or IModelDoc2(IObject defined in swdisp.h) only to call ReleaseDispatch?
Yanhua
 楼主| 发表于 2007-9-4 13:51:45 | 显示全部楼层

回复: Are you sure that release ISldWorks or IModelDoc2(IObject defined in sw

Hello Yanhua,
If you step into the OLE Automation code, you will find that absolutely you are using COM.  The OLE Automation classes supplied by MFC are simply wrappers to COM objects.  The call to ReleaseDispatch will Release the COM pointer that it is holding onto and subsequently release the object reference that SW sees.

Regards,

-Earl
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 01:03 , Processed in 0.034910 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表