MFC 串口 自动查找串口号 C++ VS2019 编写

上传者: wjy27 | 上传时间: 2024-06-04 16:59:23 | 文件大小: 69.18MB | 文件类型: ZIP
本程序实现串口的自动查找,并显示出来。并把找到的串口号写入ComboBox。 程序里面CreateFile函数起了很大的作用,可以用来创建系统设备文件,如果该设备不存在或者被占用,则会返回一个错误 并于INVALID_HANDLE_VALUE 对比,据此可以判断可使用性。详细参见MSDN中的介绍。 如:if (m_hCom != INVALID_HANDLE_VALUE) // 如果没有该设备,或者被其他应用程序在用

文件下载

资源详情

[{"title":"( 48 个子文件 69.18MB ) MFC 串口 自动查找串口号 C++ VS2019 编写","children":[{"title":"串口","children":[{"title":"ReadMe.txt <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"Mcom","children":[{"title":"Mcom.rc <span style='color:#111;'> 11.81KB </span>","children":null,"spread":false},{"title":"Mcom.vcxproj.filters <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"Mcom.vcxproj.user <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"Mcom.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"Mcom.aps <span style='color:#111;'> 106.12KB </span>","children":null,"spread":false},{"title":"Mcom.sln <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 775B </span>","children":null,"spread":false},{"title":"framework.h <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"McomDlg.cpp <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"McomDlg.h <span style='color:#111;'> 758B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Mcom.rc2 <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"Mcom.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":true},{"title":".vs","children":[{"title":"Mcom","children":[{"title":"v16","children":[{"title":"Browse.VC.db <span style='color:#111;'> 68.46MB </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 36.50KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"1e703273be344246.ipch <span style='color:#111;'> 118.88MB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"pch.h <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"Mcom.vcxproj <span style='color:#111;'> 10.21KB </span>","children":null,"spread":false},{"title":"CMSCOMM.cpp <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"CMSCOMM.h <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false},{"title":"pch.cpp <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"Mcom.h <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"CMSCOMM.obj <span style='color:#111;'> 33.05KB </span>","children":null,"spread":false},{"title":"Mcom.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"Mcom.pch <span style='color:#111;'> 55.81MB </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 1.32MB </span>","children":null,"spread":false},{"title":"Mcom.exe.recipe <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"vc142.pdb <span style='color:#111;'> 6.62MB </span>","children":null,"spread":false},{"title":"Mcom.res <span style='color:#111;'> 68.16KB </span>","children":null,"spread":false},{"title":"Mcom.pdb <span style='color:#111;'> 9.24MB </span>","children":null,"spread":false},{"title":"Mcom.obj <span style='color:#111;'> 85.66KB </span>","children":null,"spread":false},{"title":"Mcom.exe <span style='color:#111;'> 223.00KB </span>","children":null,"spread":false},{"title":"pch.obj <span style='color:#111;'> 701.33KB </span>","children":null,"spread":false},{"title":"Mcom.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 294B </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 122B </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"Mcom.lastbuildstate <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 97.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"Mcom.ilk <span style='color:#111;'> 1.83MB </span>","children":null,"spread":false},{"title":"Mcom.Build.CppClean.log <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"McomDlg.obj <span style='color:#111;'> 78.46KB </span>","children":null,"spread":false},{"title":"Mcom.log <span style='color:#111;'> 68B </span>","children":null,"spread":false}],"spread":false},{"title":"targetver.h <span style='color:#111;'> 295B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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