Reading data from serial ports (ViP Specific)
At 27 APR 1998 04:21:40AM Víctor D. Pérez wrote:
Is it possible to read data directly from a COM?
I've tried the typical open "COM2" for input as #1 but it does not work?
can anybody help me?
Thanks
At 11 JUN 1998 03:53AM PR wrote:
Shame no one seems to want to answer this one.
There is a createfile API to the Win32. This will get you a handle to the comm port (providing nothing is currently using it)
You can now do several things. If you use modems for example, you can read status's with GetCommModemStatus, transmitcommchar etc. You can read and write to the port as well in different ways(modem or no modem). You'll find this information is best obtained from the Delphi and 'C' newsgroups.
Just some ideas basically
PR