登录
首页 » 通信 » MFC写的串口测试工具源码

MFC写的串口测试工具源码

于 2022-02-25 发布 文件大小:53.15 kB
0 202
下载积分: 2 下载次数: 1

代码说明:

CSerialPort:: CSerialPort(){单独监禁= FALSE;m_hComm= NULL;//初始化重叠结构成员为零m_ov.Offset= 0;m_ov.OffsetHigh= 0;//创建活动m_ov.hEvent= NULL;m_hWriteEvent= NULL;m_hShutdownEvent= NULL;m_hErrorEvent= NULL;m_hSendCompleteEvent= NULL;m_bThreadAlive= FALSE;m_bSendNotify= FALSE;m_SendList.clear();//初始化关键部分:: InitializeCriticalSection(m_csCommunicationSync);:: InitializeCriticalSection(m_csSendList);}////删除动态内存//CSerialPort::〜CSerialPort(){ReleasePort();:: DeleteCriticalSection(m_csCommunicationSync);:: DeleteCriticalSection(m_csSendList);}无效CSerialPort:: ReleasePort(){而(m_bThreadAlive){而::休眠(1)(m_SendList.empty()!); //2012-09-27zhaoz修复停止仪器采集后数据报文发送不出去问题SetEvent的(m_hShutdownEvent);睡眠(1);}

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

发表评论

0 个回复

  • 如何模拟读串口RS232数据过Visual Basic
    How to simulate reading serial RS232 data through visual basic
    2022-03-11 12:25:04下载
    积分:1
  • uip协议,小型TCP/IP协议
    uip协议,小型TCP/IP协议-East agreements, small TCP/IP protocol
    2022-08-08 23:27:53下载
    积分:1
  • J2ME源代码java卡GSM程序
    Java card GSM applet for J2ME source code-card GSM Java applet source code for J2ME
    2022-06-21 20:19:05下载
    积分:1
  • QAM源代码,方便大家使用,谢谢分享,其实我也有点无奈
    QAM源代码,方便大家使用,谢谢分享,其实我也有点无奈-QAM source code, easy to use you, thank you sharing, in fact, I feel quite helpless
    2022-01-26 03:02:23下载
    积分:1
  • 利用vs.net2005平台和C# 语言编写蓝牙息系统(包括蓝牙文件传输和蓝牙息广播)需要微软蓝牙协议栈(MS Stack)的支持。下面就PC端如何安装微软...
    利用vs.net2005平台和C# 语言编写蓝牙信息系统(包括蓝牙文件传输和蓝牙信息广播)需要微软蓝牙协议栈(MS Stack)的支持。下面就PC端如何安装微软蓝牙协议栈进行操作说明。-PC-side installation of Microsoft" s Bluetooth protocol stack
    2022-04-08 05:48:03下载
    积分:1
  • 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
  • 这是一篇关于分布式会议的实现的文章,你可以过sip的扩展功能来实现会议功能,还有P2P协议的参与...
    这是一篇关于分布式会议的实现的文章,你可以通过sip的扩展功能来实现会议功能,还有P2P协议的参与-This is a conference on Distributed on the realization of the article, you can sip through the extensions to the realization, but also the participation agreement P2P
    2022-03-22 00:13:42下载
    积分:1
  • 各种滤波器的设计方法,包括直接型、移位型、分布式滤波器设计。各类滤波器设计概括总结
    各种滤波器的设计方法,包括直接型、移位型、分布式滤波器设计。各类滤波器设计概括总结-A variety of filter design methods, including direct type, shift type, distributed filter design. Summed up all kinds of filter design
    2022-08-10 18:40:08下载
    积分:1
  • rfm12b和AVR
    RFM12B and AVR The RFM12B tranceiver module has become quite popular recently due to its low price comparing to other modules on the market. But many people nd it hard to make these tranceivers work (mainly because of buggy programming guide provided by manufacturer, I guess...). This short article contains compact and simple code that can be used just to get these modules running for the rst time. It is based on manufacturer s examle code with slight (but crucial) changes.
    2023-08-05 00:20:03下载
    积分:1
  • 一个串口的例子
    一个串口通信的例子-Example of serial communication programming.
    2022-05-01 00:27:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载