CSerialPort串口类更新版2014-01-10

时间:2017-02-05 08:42:52
【文件属性】:

文件名称: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)

网友评论

  • VS2013下编译,有很多错误,需要修改。谢谢分享。
  • 还可以,支持一下,共同进步!
  • 下载的时候,怎么老是提示 404错误,什么原因,谢谢?
  • 谢谢分享,等待去研究。
  • 以为是整个例程,只是函数库。
  • 还是没有遍历串口和关闭的功能
  • 资源不错,可以进行改装
  • 资源不错,值得借鉴。
  • 资源很好 不少地方可以借鉴
  • 用起来还不错,谢谢
  • 试试吧,现在的不好用
  • 资源很好 可用
  • 对以前的版本很好的补充,更靠谱了,比mscomm32.ocx更灵活
  • 能够发送,不过接收不了,不知道为什么
  • 非常不错,帮我我实现了VC串口通讯
  • 不错,可用,谢谢
  • 非常好,是我想要的
  • 修改了一下 可以多个串口使用,资源很好
  • 亲测可用。
  • 非常好的资源,很经典