|
超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
回复: Are you sure that release ISldWorks or IModelDoc2(IObject defined in swdisp.h) ?
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
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|