首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > MFC写的串口测试工具源码

MFC写的串口测试工具源码

资 源 简 介

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);}<

文 件 列 表

res
PortTest.ico
PortTest.rc2
PortTest.cpp
PortTest.dsp
PortTest.dsw
PortTest.h
PortTest.ncb
PortTest.opt
PortTest.plg
PortTest.rc
PortTestDlg.cpp
PortTestDlg.h
ReadMe.txt
resource.h
SerialPort.cpp
SerialPort.h
StdAfx.cpp
StdAfx.h
DataModule.cpp
DataModule.h
PortTest.aps
PortTest.clw
VIP VIP
0.178456s