-5
I have inherited code using ReadFile Windows API method to read single byte from parallel port in a loop.
The code passed CString instance as the buffer argument, and 1 as the number of bytes to read, something like this:
CString inBuffer = "";
bResult = ReadFile(hCom, inBuffer.GetBuffer(1), 1, &...