How to grab a bar code scanner output ?

  • Thread starter Paul G. Tobey [eMVP]
  • Start date
P

Paul G. Tobey [eMVP]

There's no Microsoft-defined API for capturing 'barcode' input. Some
scanners will wedge that data into the keyboard stream, while others will
appear as serial port inputs. Still others may have a proprietary API.
Consult the documentation and your own common sense to decide which method
to use. If it's serial input (or emulates a serial port), there are classes
for Serial I/O in OpenNETCF's SDF at www.opennetcf.org. If it's
proprietary, it should come with an API from the scanner manufacturer...

Paul T.
 
K

Kevin Z Grey [MSFT]

Which barcode scanner are you using? I agree with Paul. I think most of
the barcode scanners will send them as keystrokes into the Form that
currently in focus. They usually allow you to configure the scanner drivers
to send a prefix and postfix included in the string to ease in the
identification of scanned input.
 
M

moko

I have a CF application which has to trap the value returned by a bar code
scanner attached to the PPC . Which class / method should i use to do this ?

Thanks.
 
D

Darren Shaffer

There are typically two options for capturing barcode decodes on
PocketPC/WinCE
devices with integrated scanners/imagers:

1. Use the Keyboard Wedge option on the device that simply presents the
decoded
barcode information as keyboard keystrokes to your app. This requires no
coding
in your application, but of course the user can scan at any time, even when
your app
is not prepared to accept keyboard input.

2. Control all aspects of scanning using the APIs that the device
manufacturer
provides. Companies like Symbol, Intermec, and HHP all provide .NET
Assemblies
for this purpose.

-Darren Shaffer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top