文件名称:CSerialPort串口类更新版2014-01-10
文件大小:13KB
文件格式:ZIP
更新时间:2017-02-05 08:42:52
CSerialPort
** ** PURPOSE This class can read, write and watch one serial port. ** It sends messages to its owner when something happends on the port ** The class creates a thread for reading and writing so the main ** program is not blocked. ** ** CREATION DATE 15-09-1997 ** LAST MODIFICATION 12-11-1997 ** ** AUTHOR Remon Spekreijse ** ** ************************************************************************************ ** author: mrlong date:2007-12-25 ** ** 改进 ** 1) 增加ClosePort ** 2) 增加 writetoProt() 两个方法 ** 3) 增加 SendData 与 RecvData 方法 ** ************************************************************************************ ** author:liquanhai date:2011-11-04 ** 改进 ** 1)增加 ClosePort中交出控制权,防止死锁问题 ** 2) 增加 ReceiveChar中防止线程死锁 *************************************************************************************** ** author: itas109 date:2014-01-10 ** Blog:blog.csdn.net/itas109 ** ** 改进 ** 1) 解决COM10以上端口无法显示的问题 ** 2) 扩展可选择端口,最大值MaxSerialPortNum可以自定义 ** 3) 添加QueryKey()和Hkey2ComboBox两个方法,用于自动查询当前有效的串口号 ** 博客:blog.csdn.net/itas109 Email:itas109@qq.com
【文件预览】:
CSerialPort
----README.txt(1KB)
----SerialPort.cpp(28KB)
----SerialPort.h(5KB)