A simple loopback program, win32 command line. Works on a single COM port. -- 2

Job ID: 35559744

Budget: $30 – $250 USD

A simple loopback program, win32 command line. Works on a single COM port. Transmits a block of data on COMx out of a prefilled buffer, while receiving on COMx (same port) into another buffer, then waits, then compares the two buffers, counts and reports any errors, then cleans up and does it again. Very simple!
But several people have had a go at it, costing me money, and none produced a program which actually worked properly.
So I am looking for someone who actually knows how to send data to a COM port and how to receive data from a COM port AND WHO HAS DONE THIS BEFORE.
I am supplying MS VC++ sources from the last attempt, which does mostly work, but gets itself into a mess because while the transmission is done right, the reception is a weird mess of C++ classes and doesn't get cleaned up after the TX has completed, so it gets out of sync.
Maximum $100 because a lot more has already been spent and none worked properly :)
PLEASE read the spec.txt file carefully, and do not respond unless you have already done comms under win32.