Sooo...this would be the adaptation?
Code:
Public Class UCSettingsIO
<System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> <System.Runtime.InteropServices.ComVisible(False)> _
Public Shared Function usb_init() As Integer
End Function
<System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
Public Shared Function usb_find_busses() As Integer
End Function
...
<System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
Public Shared Function usb_get_busses() As StructFormat
End Function
<System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
Public Shared Function usb_open(ByRef usb_device) As StructFormat
End Function
...
<System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
Public Shared Function usb_get_string(ByRef dev, ByVal index, ByVal langid, ByRef buf, ByVal buflen) As Integer
End Function
Or am I way off?
To use libusb-win32 in your own programs include the supplied header file usb.h, and link against the import library (libraries for GCC, BCC, and MSVC are available)
(http://libusb-win32.sourceforge.net/)
I don't think these or the
Code:
using LibUsbDotNet;
using LibUsbDotNet.Usb;
using LibUsbDotNet.Usb.Main;
used in the example file (THANK YOU) are VB.net friendly, just for C++/C#.net right?
Bookmarks