From: Desertphile on
Gene Hall wrote:

> I have a Symbol Barcode scanner that I use with the serial port. I wrote
> some simple VB code using MSCOMM to read the input from the scanner. Works
> fine but now I need to do the same thing using a USB port. My ASSumption is
> that I will need to work with the USB drivers but wondered if any of you VB
> gurus have done this.

The issue still interests me. Odd that the Google searches I have done
do not turn up anything helpful on the issue. I am going to keep
looking and if something turns up I will post about it here.

From: Helmut Wabnig on
On Mon, 23 Jan 2006 17:48:13 GMT, "Gene Hall" <ghall(a)austin.rr.com>
wrote:

>I have a Symbol Barcode scanner that I use with the serial port. I wrote
>some simple VB code using MSCOMM to read the input from the scanner. Works
>fine but now I need to do the same thing using a USB port. My ASSumption is
>that I will need to work with the USB drivers but wondered if any of you VB
>gurus have done this.
>
>Thanks so much
>Good group here.
>
>Gene
>
That is best done with a serial-to-USB converter which creates virtual
COM ports. A driver must be installed of course.
I have done that on Windows XP.

The more difficult problem is to find all the virtual COM ports
under VB. Theoretically there can be an (almost) unlimited
number of COM's with an (almost) unlimited data transfer
rate up to Mbytes/second. I have managed to find
up to 10 COM ports, but not more and set the transfer speed
to the well known 125 kbyte.

How do I extend to > 10 COM possible ports and 4 Mbyte
data rate?

This is what I adapted for my use:
http://www.devx.com/vb2themax/Tip/18343

w.
From: Desertphile on
Gene Hall wrote:

> I have a Symbol Barcode scanner that I use with the serial port. I wrote
> some simple VB code using MSCOMM to read the input from the scanner. Works
> fine but now I need to do the same thing using a USB port. My ASSumption is
> that I will need to work with the USB drivers but wondered if any of you VB
> gurus have done this.

See the following web page: http://www.lvr.com/hidpage.htm
and specifically http://www.lvr.com/files/usbhidio2.zip

"This application has been tested on Windows 98 SE, Windows 2000, and
Windows XP."

Windows will have a generic USB driver such as hidusb.sys

Major problem: you need to know the specific vendor and product IDs for
the USB device.

From: Desertphile on
Gene Hall wrote:

> I have a Symbol Barcode scanner that I use with the serial port. I wrote
> some simple VB code using MSCOMM to read the input from the scanner. Works
> fine but now I need to do the same thing using a USB port. My ASSumption is
> that I will need to work with the USB drivers but wondered if any of you VB
> gurus have done this.

http://www.starlight-xpress.co.uk/Software_Developer's_page.htm

API: http://www.starlight-xpress.co.uk/developer/OSinterface.bas
Interface:
http://www.starlight-xpress.co.uk/developers/USBinterface.bas