由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - how to use old DLL in VB .NET?
相关主题
[solved] Re: use old DLL in VB .NET?Re: 有人试过 VISUAL STUDIO 2005 和 .NET 2.0么
vb.net problem.exe.config 是只读的吗?
VB.net 的小问题.NET 新手 请教两个弱问题
没啥人气呀!笨笨一问:请问Visual Studios.NET和Visual Studio 2003/2005什么关系啊?
[zt]101 VB.NET examplesdotnet真的没有市场吗?
CrystalReport 问题C# interview
谁有PDC WHIDBEY DOWNLOAD?新手请教:.NET入门书
Application Interoperability btw .NET and J2EE.NET 和 Java 的轮回
相关话题的讨论汇总
话题: testdata话题: dll话题: net话题: byval话题: string
进入DotNet版参与讨论
1 (共1页)
G**T
发帖数: 388
1
I have a dll which works in VB6. Now I need use it in VB .NET, what I should
do?
The old DLL is:
Private Declare Function TestData Lib "Test.dll" Alias "TESTDATA" (ByVal
Source As String, ByVal Dest As String) As Long
Now I want to use it in Vb .NET. I checked MSDN and tried this:
_
Public Shared Function TestData(ByVal Source As String, _
ByVal Dest As String) As Long
End Function
......
Dim ret As Long
ret = TestData(strSource, strDest)
the TestD
w**w
发帖数: 5391
2
I have some COM dll working well in .NET. You may try to add reference(add your
dll); imports dll namespace.

【在 G**T 的大作中提到】
: I have a dll which works in VB6. Now I need use it in VB .NET, what I should
: do?
: The old DLL is:
: Private Declare Function TestData Lib "Test.dll" Alias "TESTDATA" (ByVal
: Source As String, ByVal Dest As String) As Long
: Now I want to use it in Vb .NET. I checked MSDN and tried this:
: _
: Public Shared Function TestData(ByVal Source As String, _
: ByVal Dest As String) As Long
: End Function

G**T
发帖数: 388
3

your
got a solution: change all 'Long' to 'Interge'.
then it works!!!!!!!!!!!!!
but I do not know why. weird. maybe just a bug.
hehe
should
compile

【在 w**w 的大作中提到】
: I have some COM dll working well in .NET. You may try to add reference(add your
: dll); imports dll namespace.

G**T
发帖数: 388
4

I just tried some other DLLs, they work in this way too. weird.

【在 G**T 的大作中提到】
:
: your
: got a solution: change all 'Long' to 'Interge'.
: then it works!!!!!!!!!!!!!
: but I do not know why. weird. maybe just a bug.
: hehe
: should
: compile

1 (共1页)
进入DotNet版参与讨论
相关主题
.NET 和 Java 的轮回[zt]101 VB.NET examples
.Net 2.0 Window Form Property.Settings 问题CrystalReport 问题
vb.net v.s. C#谁有PDC WHIDBEY DOWNLOAD?
vb.net如何显示缩小后窗口消失的程序(已解决) Application Interoperability btw .NET and J2EE
[solved] Re: use old DLL in VB .NET?Re: 有人试过 VISUAL STUDIO 2005 和 .NET 2.0么
vb.net problem.exe.config 是只读的吗?
VB.net 的小问题.NET 新手 请教两个弱问题
没啥人气呀!笨笨一问:请问Visual Studios.NET和Visual Studio 2003/2005什么关系啊?
相关话题的讨论汇总
话题: testdata话题: dll话题: net话题: byval话题: string