MFC串口助手(一)-初级版(初始化、串口设置、修改参数、打开、关闭、状态显示)-代码注释非常详细

上传者: m0_51233386 | 上传时间: 2025-11-13 13:39:26 | 文件大小: 148.23MB | 文件类型: ZIP
MFC串口助手初级版实现(初始化、串口设置、修改参数、打开、关闭、状态显示)---代码注释非常详细,自己写的函数基本是逐行注释,重要的地方还特别的描述原理方法,非常适合新手练习使用。 //变量======================================== public: //自定义变量 HANDLE m_hCom; //串口句柄 volatile int m_bConnected; //串口连接成功指示 BOOL m_COMStatu; //串口状态指示 long m_rxlen; //接收数据个数 long m_txlen; //发送数据个数 //列表框变量 CComboBox m_Combo_Com; //列表框:串口 CComboBox m_Combo_Baud; //列表框:波特率 CComboBox m_Combo_Check; //列表框:校验位 CComboBox m_Combo_Data; //列表框:数据位 CComboBox m_Combo_Stop; //列表框:停止位 //字符变量 CString m_Str_Com; //字符变量:串口 CString m_Str_Baud; //字符变量:波特率 CString m_Str_Check; //字符变量:校验位 CString m_Str_Data; //字符变量:数据位 CString m_Str_Stop; //字符变量:停止位 //函数====================================================

文件下载

资源详情

[{"title":"( 60 个子文件 148.23MB ) MFC串口助手(一)-初级版(初始化、串口设置、修改参数、打开、关闭、状态显示)-代码注释非常详细","children":[{"title":"SerialPort.sln <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"SerialPort","children":[{"title":"v16","children":[{"title":"Browse.VC.db-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"Browse.VC.opendb <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 68.48MB </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"22239541bfeb7608.ipch <span style='color:#111;'> 118.94MB </span>","children":null,"spread":false}],"spread":true},{"title":"Browse.VC.db-wal <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"v17","children":[{"title":"DocumentLayout.json <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"fileList.bin <span style='color:#111;'> 72.34KB </span>","children":null,"spread":false},{"title":"Preview","children":[{"title":"Browse.VC.db <span style='color:#111;'> 71.63MB </span>","children":null,"spread":false},{"title":"Solution.VC.db <span style='color:#111;'> 428.00KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"b93e2c3057e42635.ipch <span style='color:#111;'> 127.31MB </span>","children":null,"spread":false},{"title":"3ffd4a7a2b203a97.ipch <span style='color:#111;'> 127.31MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 70.50KB </span>","children":null,"spread":false},{"title":"DocumentLayout.backup.json <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false}],"spread":true},{"title":"FileContentIndex","children":[{"title":"742ce390-3965-46bc-b9eb-7674b0eb78eb.vsidx <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"04f98b83-e9ec-4d33-b212-fdfb990870b0.vsidx <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"3a01c574-107c-4abd-b0c9-4b787db06003.vsidx <span style='color:#111;'> 107B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"SerialPort","children":[{"title":"SerialPort.h <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"SerialPortDlg.cpp <span style='color:#111;'> 11.61KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"framework.h <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"SerialPort.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"SerialPort.rc2 <span style='color:#111;'> 676B </span>","children":null,"spread":false}],"spread":true},{"title":"SerialPort.vcxproj.user <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"pch.h <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"SerialPort.cpp <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"SerialPort.rc <span style='color:#111;'> 12.65KB </span>","children":null,"spread":false},{"title":"pch.cpp <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"SerialPort.vcxproj.filters <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"SerialPortDlg.h <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"SerialPort.aps <span style='color:#111;'> 90.72KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc143.pdb <span style='color:#111;'> 6.71MB </span>","children":null,"spread":false},{"title":"SerialPort.obj <span style='color:#111;'> 82.14KB </span>","children":null,"spread":false},{"title":"SerialPort.Build.CppClean.log <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"SerialPort.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"Cl.items.tlog <span style='color:#111;'> 925B </span>","children":null,"spread":false},{"title":"SerialPort.lastbuildstate <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"link.secondary.1.tlog <span style='color:#111;'> 789B </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 93.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"SerialPortDlg.obj <span style='color:#111;'> 137.98KB </span>","children":null,"spread":false},{"title":"pch.obj <span style='color:#111;'> 776.73KB </span>","children":null,"spread":false},{"title":"vc143.idb <span style='color:#111;'> 1.33MB </span>","children":null,"spread":false},{"title":"SerialPort.ilk <span style='color:#111;'> 1.92MB </span>","children":null,"spread":false},{"title":"SerialPort.log <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"SerialPort.pch <span style='color:#111;'> 51.19MB </span>","children":null,"spread":false},{"title":"SerialPort.exe.recipe <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":"SerialPort.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SerialPort.res <span style='color:#111;'> 68.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"targetver.h <span style='color:#111;'> 295B </span>","children":null,"spread":false},{"title":"SerialPort.vcxproj <span style='color:#111;'> 10.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"Debug","children":[{"title":"SerialPort.exe <span style='color:#111;'> 250.00KB </span>","children":null,"spread":false},{"title":"SerialPort.pdb <span style='color:#111;'> 8.11MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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