几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   Are you sure that release ISldWorks or IModelDoc2(IObject defined in swdisp.h) ? (http://www.dimcax.com/hust/showthread.php?t=1408)

huangyhg 2007-09-04 01:51 PM

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

huangyhg 2007-09-04 01:51 PM

回复: 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.