This is a good class of files, a lot of places worth learning, specific in multi-threading, events, custom messages, class encapsulation aspects and so on.
Remon provides the serial port class URL is: http://codeguru.earthweb.com/network/serialport.shtml,
Since has been running for more than 10 years, the original question and answer section listed for so many years, after the user's summary, to supplement and modify the original code, to collate a relatively perfect code.
Also comes with a small project source code, it goes beyond the serial port assistant, gives the person a kind of refreshing feeling. Highlights are as follows:
1. It solves the problem of deadlock not responding when the serial port is closed, and can be used directly on the development project.
2. and is the extension of the serial port Assistant, with the communication protocol editing and use functions,
3. Software upgrade test, it is worth doing software upgrade example use.
4. The most important thing is the source code is very good, it is worth to study.
Share to the needs of friends, there is a problem, you can leave a message in order to make further corrections.
VC Serial Correction Class application of the small project: http://download.csdn.net/detail/liquanhai/3763088
2014-01-11 Additional notes:
Newest Cserialport classes in: Https://github.com/liquanhai/CSerialPort
VC Serial Correction Class application of the small project: Http://files.cnblogs.com/zjoch/serialProject.rar
Transferred from: http://blog.csdn.net/liquanhai/article/details/6941574
Cserialport serial Port Class latest revision (solve the deadlock problem)