You may want to contact the macufacturer of the bar code scanner to
see if they can provide you with a USB device driver that will create
a "Virtual COM Port" instead of acting as a standard "keyboard wedge"
bar code scanner. At the moment your bar code scanner is identifying
itself to Windows as a keyboard and Windows is loading the USB
keyboard driver for the device so it is not possible to tell the
difference between data coming in on the keyboard and data coming from
the bar code scanner. Many bar code scanners can be configured to work
with a different "RS232 Virtual COM Port driver" that causes the bar
code scanner to appear as if it were a COM port connected to your PC.
With the virtual COM port driver, you could write your code to open
the virtual COM port and read in the data from the bar code scanner
directly. This is only possible if the scanner that you have supports
this way of working. Metrologic scanners and Handheld Products
scanners both come with Virtual COM port drivers. If you want to read
more about this, please read the following article:
http://www.taltech.com/products/interface.htm
You can also buy Metrologic or HHP scanners at the following page on
the same web site:
http://www.taltech.com/products/bc_reader.html
On Wed, 08 Aug 2007 03:08:14 -0700, Gerry19 <Ge***********@gmail.com>
wrote:
>
Hi All,
I'm trying to monitor data passed from a USB Barcode scanner but I
can't find any decent code examples of what I need to do, including
any references I need to include.
I know I need to use RegisterRawInputDevices & WM_INPUT but have no
idea where to start.
Any help greatly appreciated.
Thanks
G