在C#中如何调用vb写的dll
我在vb6中用class module写了一个dll,想在C#中调用,于是在C#的工程中添加引用,试过了.net和com 的添加方式,在object browser中能看出其类结构。然后在C#代码中用new的方法生成一个对象,调用其成员方法。编译通过,在执行时,发生异常,异常代码如下:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ICtest.exe
Additional information: COM object with CLSID {B709FE03-B2BC-11D7-9235-00B0D09C9D4B} is either not valid or not registered.
我的dll在win98上编译,C#项目在win2k上调用。各位大虾帮忙,给分好商量。