Ports
May 19, 2013, 11:28:16 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: WinUSB and VB6  (Read 2303 times)
866JR
Member
*
Posts: 5


« 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.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« 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:

http://www.lvr.com/hidpage.htm

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.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!