How to flush serial buffers in VC++
Posted: Fri Dec 02, 2011 12:44 am
In Visual C++, we used to use CreateFile, ReadFile, WriteFile for serial communication just as files. At some points, it is required to flush the serial read/write buffers. You can use FlushFileBuffers(handle) function to do that. Note that handle is the handle returned by CreateFile function.