登录
首页 » 通信 » 改进的SeriaPort类,实现块读取

改进的SeriaPort类,实现块读取

于 2022-08-08 发布 文件大小:9.85 kB
0 165
下载积分: 2 下载次数: 1

代码说明:

基于CSerialPort类,增加了RecvBlock方法,一次性读取多个字节,并且改进了无法正常退出的bug。原说明:This class can read, write and watch one serial port.It sends messages to its owner when something happends on the portThe class creates a thread for reading and writing so the mainprogram is not blocked.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Modbus TCP 客户端
    ======================================================================== MICROSOFT 基础类库: ModbusClient ======================================================================== 应用程序向导已创建此为你的 ModbusClient 应用程序。此应用程序 不只演示了使用 Microsoft 基础类的基本知识 但也是您编写应用程序的起始点。 此文件包含你会发现在每个文件中的摘要, 让您的 ModbusClient 应用程序。 ModbusClient.dsp 此文件 (项目文件) 包含在项目级信息和 用来建立一个单一的项目或子项目。其他用户可以共享 项目 (.dsp) 文件,但他们应该导出到本地的生成文件。 ModbusClient.h 这是为应用程序的主头文件。它包括其他 项目特定的标头 (包括 resource.h 中),并声明 CModbusClientApp 应用程序类。 ModbusClient.cpp 这是主应用程序源文件中包含的应用程序 CModbusClientApp 的类。 ModbusClient.rc 这是所有的 Microsoft Windows 资源的列表, 程序使用。它包括图标、 位图和游标的存储 在 RES 子目录中。在 Microsoft 中,可以直接编辑此文件 Visual c + +。 ModbusClient.clw 此文件包含类向导用于编辑现有的信息 类或添加新的类别。ClassWizard 也使用这个文件来存储 创建和编辑消息映射和对话框数据所需的信息 映射和创建原
    2022-07-25 10:54:04下载
    积分:1
  • 基于verilog HDL 串口IP核设计
    该verilog 串口通信程序采用分层思想,主要由顶层模块、波特率发生器模块、数据发送模块和数据接收模块4个模块构成,功能划分明确,便于系统设计和调试。
    2022-11-09 06:05:04下载
    积分:1
  • CDMA网络规划基础 PN码规划和邻区的规划 解释了PN码(伪随机序列)以及CDMA网络中的邻区的概念以及基本的规划方法...
    CDMA网络规划基础 PN码规划和邻区的规划 解释了PN码(伪随机序列)以及CDMA网络中的邻区的概念以及基本的规划方法-CDMA network planning based on PN Code Planning and adjacent areas of planning explained the PN code (pseudo-random sequence), as well as CDMA networks the concept of adjacent areas, as well as basic planning methods
    2022-03-30 06:57:54下载
    积分:1
  • 液压硫化机
    欧姆龙PLC,是液压硫化机的自动控制程序。可以实现硫化机的多个压力自动启动,减少了人力
    2022-03-12 01:40:22下载
    积分:1
  • 基于opnet的自编统计量测试代码,对使用opnet中的API函数的统计量函数...
    基于opnet的自编统计量测试代码,对使用opnet中的API函数的统计量函数-OPNET based on statistics of self-test code, the use of OPNET in the Statistics API function function
    2022-03-18 00:58:42下载
    积分:1
  • 微软亚洲研究院论文:ROHC
    微软亚洲研究院论文:ROHC-TCP:单向操作的优化-Microsoft Asia Research Institute Papers : ROHC-TCP : Optimization of one-way operation
    2023-07-18 09:25:03下载
    积分:1
  • 串口收发程序
    fafasdfasfasfasdfasfasfas fsdafasfasdgfdhfdghgdfjhdfghdgf hdfghfdghfdghdfghdfghdfg// DlgSend.cpp : implementation file // Download by http://www.codefans.net #include "stdafx.h" #include "SCC.h" #include "DlgSend.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgSend dialog CDlgSend::CDlgSend(CWnd* pParent /*=NULL*/)  : CDialog(CDlgSend::IDD, pParent) {  //{{AFX_DATA_INIT(CDlgSend)  m_nCycMode = 0;  m_nCycSel = 0;  m_unTime = 1000;  m_unLine = 1;  m_unStart = 1;  m_unEnd = 2;  m_unTrigger = 0;  //}}AFX_DATA_INIT } void CDlgSend::DoDataEx
    2022-03-05 20:00:41下载
    积分:1
  • Palm TextSync Conduit是一个掌上电脑同步管道,用于标准文本压缩/解压缩基础(PDOC)。它将和无格式的桌面电脑文本文件同步,当有冲突发生进就
    Palm TextSync Conduit是一个掌上电脑同步管道,用于标准文本压缩/解压缩基础(PDOC)。它将和无格式的桌面电脑文本文件同步,当有冲突发生进就合并文件。 来源: http://sourceforge.net/projects/palmtextsync/ -Palm TextSync Conduit is on a palm the computer synchronization pipeline, uses in the standard text compression/solution compression foundation (PDOC). It and non- form tabletop computer text documents synchronization, when has the conflict to occur gives in and the document. Origin: Http://sourceforge.net/projects/palmtextsync/
    2022-06-30 06:34:09下载
    积分:1
  • Watchdata CRW
    握奇CRW-X非接触式IC卡读写器操作例子。应用于非接触式CPU/M1卡片操作。-Watchdata CRW-X non-contact IC card reader operation examples. Applies to non-contact operation CPU/M1 card.
    2022-02-15 06:21:02下载
    积分:1
  • 使用efax的fax工具程序
    使用efax的fax工具程序 -Using fax tools in efax
    2022-02-12 16:44:02下载
    积分:1
  • 696516资源总数
  • 106461会员总数
  • 1今日下载