Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serial Communications
Message
From
05/08/1999 14:52:59
 
 
To
05/08/1999 11:05:45
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00250169
Message ID:
00250317
Views:
15
>I am looking for a good serial comm library for use with Visual FoxPro I am communicating between a PC and a Verifone Credit Card terminal, the speed is only 1200 baud. I anyone knows of any let me know. Thanks
>

If all you need is low-level comm port I/O, the MSCOMM32.OCX control that ships with VIsual FOxPro has more than adequate functionality. there are no built-in protocols, terminal emulations and things of that sort - only port-level manipulation.

At 1200 baud, you can probably live with Polled I/O, which is fairly straightforward to implement using MSCOMM32. If you need event-driven (interrupt-driven) comms, then you'll need to use MSCOMM32 in conjunction with VFPCOM.DLL, a freely-redistributable add-on to VFP 5 or 6 (download from msdn.microsoft.com/vfoxpro/downloads) that allows you to bind VFP code to events from an ActiveX control or COM component.

There is documentation with sample code in VB in the MSDN documentation (if you don't have a copy, you can access the information at msdn.microsoft.com) for polled I/O; there are also samples of VFP code that use the MSCOMM32 control available here either in the FAQ on in the Files Section.

>
>Chris
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
Reply
Map
View

Click here to load this message in the networking platform