Re: rs232 -help!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Robby wrote:
Anyhow, this has been a tough one, and I thank all the fellows who contributed to my rs232 dilema. I don't know if I will run into problems with the code above, however I tell ya, this is the best I can get so far and I figure I should share it with you. Its the least I can do. I don't say that ist the best way of doing this, however, it works!

Glad you have some success. One suggestion: Your code appears to be setting the baud rate etc. *after* you receive a read notification. This makes no sense and is probably causing the "junk" you reported. Set the baud rate etc. right after you open the port, and don't mess with it after communication has begun.

--
Scott McPhillips [VC++ MVP]

.