机器上装有多版本CAD的VB启动问题
<P>我的机器上装有CAD2000,CAD2004,CAD2006</P><P>在用VB启动时用语句</P>
<P>Set AppAutoCad = CreateObject("AutoCAD.Application") </P>
<P>进行启动,显示错误号13:类型不匹配</P>
<P>用Set AppAutoCad = CreateObject("AutoCAD.Application.20")或</P>
<P> Set AppAutoCad = CreateObject("AutoCAD.Application.19")</P>
<P>启动时显示错误号429:ACTIVEX部件不能创建对象.</P>
<P>我在引用中用的是2006的类库.不知是什么问题.请指教</P> <P>补充一下,改为引用2000类库时错误号仍为429.并且在引用中,2004的类库消失了!!</P>
<P>请高人指点一下.</P> <P>Set AppAutoCad = CreateObject("AutoCAD.Application.15") AUTOCAD2000</P>
<P>Set AppAutoCad = CreateObject("AutoCAD.Application.15.1") AUTOCAD2002</P>
<P>Set AppAutoCad = CreateObject("AutoCAD.Application.16") AUTOCAD2004</P>
<P>Set AppAutoCad = CreateObject("AutoCAD.Application.16.1") AUTOCAD2005</P>
<P>Set AppAutoCad = CreateObject("AutoCAD.Application.16.2") AUTOCAD2006</P>
<P>Set AppAutoCad = CreateObject("AutoCAD.Application.17") AUTOCAD2007</P>
<P>你的当然会出错。呵……</P>
页:
[1]