在VB6中注册VB.Net DLL [英] Register VB.Net DLL in VB6

查看:132
本文介绍了在VB6中注册VB.Net DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用COM Class在VB.Net中创建了一个DLL。



我在VB6代码中使用它。它在我的系统中工作正常。我构建了一个vb6的exe并在其他系统中使用。当我尝试在其他系统中使用时,我需要使用以下命令提示注册DLL



regasm DLL的位置(E:\ Dlltet.dll):Dlltest.tlb / codebase



由于此DLL必须在许多系统中使用,可以任何人帮助我



如何使用regasm throgh我的VB6代码注册.Net DLL,这样我就不需要每次都使用命令提示符注册。



如果有人能帮助我,我会很感激。



提前致谢..



Lakshmi

I have created a DLL in VB.Net using COM Class.

I am using it in VB6 code. It works fine in my system. I build a exe of the vb6 and use in other systems.When i try to use in other system i need to register the DLL using command Prompt using the following

regasm "location of the DLL("E:\Dlltet.dll") : Dlltest.tlb /codebase

As this DLL has to be used in many systems, can anyone help me

How can i register the .Net DLL using regasm throgh my VB6 code so that i need not register using command prompt everytime.

I would be thankful if anyone could help me.

Thanks in advance..

Lakshmi

推荐答案

您可以通过为您的应用程序创建一个安装程序来完成此操作,该安装程序将自动处理在系统上注册您的组件。



这是基于Windows安装的安装还是某些批处理文件,它将所有内容复制到应有的位置,并且注册由您决定。
You do this by creating an installer for your application, which will automatically handle registering your components on the system.

Whether that's a Windows Install based installation or some batch file that copies everything to where it's supposed to be and does the registration is up to you.


你需要为VB6.0 exe创建安装程序,也许你可以使用你可以自由下载的Installshield向导。我遇到了同样的问题,它只是这样解决了。
You need to create installer for the VB6.0 exe, maybe u can use Installshield wizard which u can download freely. I had the same problem and it was resolved this way only.


这是你需要实现的:

1.检查regasm.exe是否存在,如图所示
This is what you need to implement:
1.Check if regasm.exe exist as shown
command = Environ


这篇关于在VB6中注册VB.Net DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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