On a follow-up to a previous question I had, I am having trouble figuring out how to transfer data from the 8051 to my PC. I am using printf and puts. I can get the data to show up in a HyperTerminal window, but I can't get my Visual C++ to read the data from the PC's serial port buffer. I'm pretty sure (but not absolute sure) that my Visual C++ code to read from the serial port is correct. Any suggestions on what functions I should use to accomplish my task? Like I said, I just want to transfer data from my 8051 to the PC.
"I can get the data to show up in a HyperTerminal window," That shows that the data is correctly reaching the PC's COM port, and being correctly handled by the Windows drivers, etc "I'm pretty sure (but not absolute sure) that my Visual C++ code to read from the serial port is correct." That can't be true - if it works with Hypoterminal, but not your VC code, then the fault must almost certainly be in your VC code! "I just want to transfer data from my 8051 to the PC." The fact that it works in Hypoterminal proves that you can do this - it must be your VC code that's at fault!