我已经做了一些期待通过网站和互联网试图找到一个解决一个问题,一个VB.NET应用程序,我试图创建的。不幸的是,我由已经阻止我与任何发明者定制向前移动的错误消息难住了。

Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install
OS: Windows Vista 64 sp1

我安装SDK文件夹下的开发工具。然后,我在我的VB.NET项目添加COM引用到名为组件:Autodesk Inventor的对象库。这似乎在引用我的项目为:

Reference Name: Autodesk Inventor Object Library
Type: COM
Version: 1.0.0.0
Copy Local: True
Path: C:\Users\rschmalt\Visual Studio 2005\Projects\
        InvTest\InvTest\obj\Debug\Interop.Inventor.dll

我的代码如下所示:

'Opens Inventor Apprentice session to read part numbers

Dim oApprentice As New Inventor.ApprenticeServerComponent
Dim asmDoc As Inventor.ApprenticeServerDocument
Dim refDoc As Inventor.ApprenticeServerDocument

asmDoc = oApprentice.Open(strIAMLocation)

For Each refDoc In asmDoc.ReferencedDocuments
  MessageBox.Show(refDoc.FullFileName.ToString)
Next

当我执行它,我得到以下信息:

  

Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154

我试图直接浏览到该DLL(Interop.Inventor.dll),然后将其显示为在参考文献.NET类型,但错误依然如此。

是否有可能存在之间远景64(发明11是32位)冲突?任何建议?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top