串口通信工具C++版

上传者: yjn43422757 | 上传时间: 2023-03-21 14:50:33 | 文件大小: 5.65MB | 文件类型: RAR
class CRS232Port { private: HANDLE m_hCommPort; //串行口的句柄 //char m_RecvBuf[BUFFER_SIZE], m_SendBuf[BUFFER_SIZE]; //UINT m_RecvPTR; //CEvent SendEvent( 0, true, 0, 0), RecvEvent( 0, true, 0, 0); OVERLAPPED m_SendOV, m_RecvOV; public: CRS232Port(void); ~CRS232Port(void); // 获取所有的COM端口号,保存在pPortList中 void GetAllComPort(CString* pPortList); // 将char型转换成unicode,输入为pchIn, 输出为pstrOut static int CharToUnicode(char* pchIn, CString* pstrOut); // 初始化端口 bool InitPort(CString strPort, int iBaudRate, int iByteSize, int iParity, int iStopBits); // 发送数据, 入口为要发送的数据的长度 void SendFile(ULONG SendLen, char sendBuf[]); // 设置发送数据 //void SetSendBuf(char sendBuf[]); bool ReadData(CString* ShowStr); };

文件下载

资源详情

[{"title":"( 26 个子文件 5.65MB ) 串口通信工具C++版","children":[{"title":"NetWorkComm","children":[{"title":"USkin.h <span style='color:#111;'> 29.49KB </span>","children":null,"spread":false},{"title":"NetWorkComm.cpp <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"NetWorkCommDlg.cpp <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"RS232Port.cpp <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"NetWorkComm.vcproj.yjn-PC.Administrator.user <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"NetWorkComm.rc <span style='color:#111;'> 7.37KB </span>","children":null,"spread":false},{"title":"RS232Port.h <span style='color:#111;'> 833B </span>","children":null,"spread":false},{"title":"NetWorkCommDlg.h <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"NetWorkComm.vcproj <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"NetWorkComm.h <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"RisingDragon.u3 <span style='color:#111;'> 45.90KB </span>","children":null,"spread":false},{"title":"USkin.lib <span style='color:#111;'> 14.33KB </span>","children":null,"spread":false},{"title":"USkin.dll <span style='color:#111;'> 327.00KB </span>","children":null,"spread":false},{"title":"NetWorkComm.rc2 <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"NetWorkComm.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"NetWorkComm.aps <span style='color:#111;'> 103.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"NetWorkComm.sln <span style='color:#111;'> 899B </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"RisingDragon.u3 <span style='color:#111;'> 45.90KB </span>","children":null,"spread":false},{"title":"USkin.dll <span style='color:#111;'> 327.00KB </span>","children":null,"spread":false},{"title":"NetWorkComm.exe <span style='color:#111;'> 1.66MB </span>","children":null,"spread":false}],"spread":true},{"title":"NetWorkComm.ncb <span style='color:#111;'> 15.62MB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明