几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   How to start SW 2007 or SW 20006 via SW API? If I have two different versions of SW (http://www.dimcax.com/hust/showthread.php?t=744)

yogy 2007-05-21 09:19 AM

How to start SW 2007 or SW 20006 via SW API? If I have two different versions of SW
 
Q:
Subject: How to start SW 2007 or SW 20006 via SW API? If I have two different versions of SW, SR: 1-447044967.

Dear,



I installed SW 2006 after I had installed SW 2007. Now I had two different versions of SW in my local server. I want to run SW 2007 or other version via SW API. If I call CreateDispatch(_T("SldWorks.Application")), SW 2006 as the default version will be started.

How to start SW 2007 via SW API?
Yogy

yogy 2007-05-21 09:19 AM

回复: How to start SW 2007 or SW 20006 via SW API? If I have two different versions of SW
 
R:
Hello,
I think you’ll get the result you are looking for if you call CreateDispatch with the version-specific ProgID for SW2007. For example, in my registry under the CLSID for SldWorks 2007 Application, I have for VersionIndependentProgID: “SldWorks.Application”, but for ProgID, I have “SldWorks.Application.15”.


Joe



所有的时间均为北京时间。 现在的时间是 10:31 PM.