|
楼主 |
发表于 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 |
|