Transform VB6 to VB.NET

otherside

Centurion
Joined
Mar 16, 2003
Messages
127
Location
UK - Greece
hey guys, anyone knows how to translate this :

Code:
Private Declare Function AwusbOpen Lib "awusbvb.dll" (ByVal devnum As Long) As Long

to VB.NET the correct way, this line is working in VB.NET but i think there is another way to do this.

any ideas?
 
You can use the DLLImport attribute, but there's no need unless you're using C#.
 
Back
Top