Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using devices with VFP
Message
From
14/08/2000 23:03:48
 
 
To
14/08/2000 22:36:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00404796
Message ID:
00404800
Views:
23
>Hi Everyone,
>
>What are the best ways to connect things like Pole Displays, Cash Drawers, Scanners, Scales, all that jazz to the computer and control them with VFP?
>

As a general rule, it doesn't matter so much the type of port used as the software interface - if at all possible, you want an ActiveX control rather than a C-style API interface. Barcode readers, mag stripe card readers and similar devices are often available as a wedge device - a wedge style device connects up through the keyboard, and input from it comes in as if it were typed in at the keyboard, so you can get the information through a textbox on a form.

Scales and the like typically are serial or USB devices; most devices in this class are simple serial devices, and can be handled through the MSCOMM32 control if they don't come with their own control. Graphical input devices like scanners generally adhere to a standard like TWAIN and have controls available for them.

I try to avoid using output devices that require detailed control as Windows printers - barcode printers for example. Go out of your way to select hardware that offers this as an option; if you don't want to treat it like a Windows printer with the Windows Spooler and the whole GDI sitting in place, don't pick a device that forces you to treat it as a Windows Printer.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform