Board index » cppbuilder » Com port error
JD
CBuilder Developer |
Com port error2006-06-16 02:19:46 AM cppbuilder9 I'm trying to setup a test application that mimics a device that would be connect to a com port so that I can test a thread that collects data from the device. The problem that I'm having is that I want the thread to use WaitCommEvent which means that when I open the port using CreateFile, I must specify FILE_FLAG_OVERLAPPED for the dwFlagsAndAttributes parameter. When the port is opened this way, WriteFile fails with an error code of 997 which translates to "Overlapped I/O operation is in progress". Does anyone have any thoughts on how I might accomplish what I want (just a small test that will write data to the port)? ~ JD |