几何尺寸与公差论坛

 找回密码
 注册
查看: 3004|回复: 1

How to start SW 2007 or SW 20006 via SW API? If I have two different versions

[复制链接]
发表于 2007-5-21 09:19:38 | 显示全部楼层 |阅读模式
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
 楼主| 发表于 2007-5-21 09:19:59 | 显示全部楼层

回复: How to start SW 2007 or SW 20006 via SW API? If I have two different ve

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 18:48 , Processed in 0.036177 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表