Author Topic: WinUSB and VB6  (Read 13640 times)


  • Member
  • ***
  • Posts: 5
WinUSB and VB6
« on: February 06, 2011, 12:12:51 pm »
Can't find any examples of VB6 using WinUSB for a vendor specific device. I would like my host to be a .exe program that does not require the .net framework and would like to stay with VB6 if possible. I have my project started and my board registers as a custom USB device when connected. I have been front to back in USB Complete fourth edition and can't seem to move forward at this point. I can't figure out how to set up VB6 with WINUSB.dll, it is there but I don't know how, of if I even can declare it.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: WinUSB and VB6
« Reply #1 on: February 07, 2011, 12:30:11 am »
As with VB .NET, you need to provide declarations for every function you call in the DLL.

I have a VB6 program for HIDs here:

This will show you the basic syntax for accessing functions in DLLs. You'll need to do something similar for WinUSB. My .NET declarations and function calls should also be of some use.