VB DLL文件 [英] VB dll files

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

问题描述

我还可以在Visual Basic.net中编写dll文件吗?

Can I still write dll files in Visual basic.net?

推荐答案

您可以使用VB.NET(或C#)创建等效文件一个VB 6 ActiveX DLL
使用COM Interop
。这些DLL可以由.NET应用程序或VB(更多特定的COM)应用程序使用。注意:如果要在VB.NET中创建一个将由VB 6前端使用
的DLL,则需要将.NET Framework部署到

将使用DLL的机器。


-

Rob Windsor [MVP-VB]

G6咨询
加拿大多伦多

" Daryl Davis" <第*********** @ hotmail.com>在消息中写道

新闻:大江************** @ tk2msftngp13.phx.gbl ...
You can use VB.NET (or C#) to create the equivalent to a VB 6 ActiveX DLL
using COM Interop. These DLLs could be used by .NET apps or VB (more
specificaly COM) apps. NOTE: If you want to create a DLL in VB.NET that will
be used by a VB 6 front-end you will need to deploy the .NET Framework to
the machines that will use the DLL.

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Daryl Davis" <th***********@hotmail.com> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
我还能写dll Visual Basic.net中的文件?
Can I still write dll files in Visual basic.net?



我想做什么....

写一个.net dll调用vb6 dll',这样我就可以把它包起来。

Daryl


Rob Windsor [MVP]" < RW ****** @ NO.MORE.SPAM.bigfoot.com>在消息中写道

news:em ************** @ TK2MSFTNGP10.phx.gbl ...
What I want to do....
is write a .net dll to call vb6 dll''s so that i have it wrapped so to speak.
Daryl

"Rob Windsor [MVP]" <rw******@NO.MORE.SPAM.bigfoot.com> wrote in message
news:em**************@TK2MSFTNGP10.phx.gbl...
您可以使用VB。使用COM Interop创建相当于VB 6 ActiveX DLL的.NET(或C#)。这些DLL可以由.NET应用程序或VB(更具体的COM)应用程序使用。注意:如果要在VB.NET中创建DLL,VB 6前端将使用
,则需要将.NET Framework部署到将使用DLL的计算机。

- 罗布温莎[MVP-VB]
G6咨询
加拿大多伦多

" Daryl Davis" <第*********** @ hotmail.com>在消息中写道
新闻:大江************** @tk2msftngp13.phx.gbl ...
You can use VB.NET (or C#) to create the equivalent to a VB 6 ActiveX DLL
using COM Interop. These DLLs could be used by .NET apps or VB (more
specificaly COM) apps. NOTE: If you want to create a DLL in VB.NET that will be used by a VB 6 front-end you will need to deploy the .NET Framework to
the machines that will use the DLL.

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Daryl Davis" <th***********@hotmail.com> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
我还能在Visual Basic中编写dll文件吗.net?
Can I still write dll files in Visual basic.net?




嗨Daryl,

。 .NET为您处理!如果您使用的是Visual Studio,请转到添加

参考。对话框并从COM选项卡的列表中选择你的VB 6 DLL。

Visual Studio将自动为你创建一个.NET DLL包装器。


你有没有''不使用VS然后你需要使用tlbimp.exe命令行

实用程序,它是.NET Framework SDK的一部分。请参阅以下链接以获取更多

此实用程序的信息

http://msdn.microsoft.com/library/de...rTlbimpexe.asp


-

Rob Windsor [MVP-VB]

G6咨询

多伦多,加拿大

" Daryl Davis" <第*********** @ hotmail.com>在消息中写道

news:O
Hi Daryl,

..NET handles that for you! If you''re using Visual Studio just go to the "Add
Reference" dialog and pick your VB 6 DLL from the list in the COM tab.
Visual Studio will create a .NET DLL wrapper for you automatically.

You you''re not using VS then you need to use the tlbimp.exe command line
utility which is part of the .NET Framework SDK. See the link below for more
info on this utility

http://msdn.microsoft.com/library/de...rTlbimpexe.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Daryl Davis" <th***********@hotmail.com> wrote in message
news:O


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

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