Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using this on Windows Ce
Message
General information
Forum:
Visual FoxPro
Category:
VFP Compiler for .NET
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01345835
Message ID:
01346245
Views:
21
I have used bar code scanners and VFP on regular windows boxes for years. I have never used any fancy API's. For me the trick has been a RS232 decoded scanner and the RS232 activeX control distributed with VFP. Plug in the scanner, setup baud, etc., open the correct COM port via the ActiveX control, scan the bar code and grab the data from the ActiveX control. Since the ActiveX control will capture data in an interrupt driven way, you have to be careful to buffer and concatenate the input until you have received all of the data. Most bar code scanners will allow you to automatically add one or two bytes to the end of the scanned data. Given that you are not likely to be scanning any carriage returns, this character works well. When you see the carriage return, you know the scan is completely captured and its time to process the data you have buffered.

Stewart Crisler
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform