VB6 调用 .Net 的 DLL 提示 Automation error The system cannot find the file specified.
Hi,
我用 C#.Net 已经生成一个 DLL 给 VB6 使用,用了 32 位的 RegASM 注册一下 MyDLL.dll 后,用生成出来的 .tlb 文件放到 VB6 工程中引用,而 VB6 也可引用成功,并成功在代码中使用到这个 DLL 里面的类与方法。
但是,当运行的时候,提示出错:
Automation error
The system cannot find the file specified.
Run-time error '-2147024894 (80070002)'
调试定位在Set MyTestClass = New MyDLL.TestClass (运行到这一行时出错: )