How to flush serial buffers in VC++
How to flush serial buffers in VC++
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.