![]() |
Are you sure that release ISldWorks or IModelDoc2(IObject defined in swdisp.h) ?
Are you sure that release ISldWorks or IModelDoc2(IObject defined in swdisp.h) only to call ReleaseDispatch?
Yanhua |
回复: 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 |
所有的时间均为北京时间。 现在的时间是 07:24 PM. |