how to use old DLL in VB .NET?# DotNet - 窗口里的风景
G*T
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
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