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 ... I'm pretty sure (but not absolute sure) that my Visual C++ code to read from the serial port is correct." If HyperTerminal can do it, so can a VC++ program. Your VC++ program is definitely not correct. "Any suggestions on what functions I should use to accomplish my task?" VC++ has a very capable debug facility. I'd start with that.