无法从.net初始化VB dll的对象 [英] Unable to Initialize an object of VB dll from .net

查看:101
本文介绍了无法从.net初始化VB dll的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有VB dll编译和构建正确。



我有使用regsvr32注册这个dll并在我的asp.net应用程序中给出它的引用并尝试调用Initialise方法。



抛出和异常。有没有人有想法,这里缺少什么?



Hi,

I have VB dll which is compiled and build correctly.

I have register this dll using "regsvr32" and gave the reference to it in my asp.net application and try to call an Initialise method.

It throwing and exception. Does anybody have idea, what am missing here ?

VBNameSpace.VBClass objVB = new VBClass();
objVB.Initialise();

推荐答案

请参阅此处:在.NET中使用非托管(VB6)代码 [ ^ ]


这篇关于无法从.net初始化VB dll的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆