AddString("9600");((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("38400");((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("115200");((CComboBox*)GetDlgItem(IDC_COMBO2))->SetCurSel(0+baud);longlReg; HKEYhKey; DWORDMaxValueLength;-IMDN开发者社群-imdn.cn"> AddString("9600");((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("38400");((CComboBox*)GetDlgItem(IDC_COMBO2))->AddString("115200");((CComboBox*)GetDlgItem(IDC_COMBO2))->SetCurSel(0+baud);longlReg; HKEYhKey; DWORDMaxValueLength; - IMDN开发者社群-imdn.cn">
登录
首页 » 通信 » 上位机软件动态获取计算机COM口

上位机软件动态获取计算机COM口

于 2022-03-14 发布 文件大小:1.86 MB
0 214
下载积分: 2 下载次数: 1

代码说明:

应用背景 通过MFC6.0生成一个单文档程序,然后新建一个对话框并生成一个新类;在对话框中添加两个组合框控件。在生成的新类上右击增加windows消息WM_INITDIALOG生成处理函数,函数内容见“关键技术描述”。函数体中的index和baud均为int型,可设为全局变量。 关键技术BOOL CComDlg::OnInitDialog()  { CDialog::OnInitDialog(); ((CComboBox *)GetDlgItem(IDC_COMBO2))->AddString("4800"); ((CComboBox *)GetDlgItem(IDC_COMBO2))->AddString("9600"); ((CComboBox *)GetDlgItem(IDC_COMBO2))->AddString("38400"); ((CComboBox *)GetDlgItem(IDC_COMBO2))->AddString("115200"); ((CComboBox *)GetDlgItem(IDC_COMBO2))->SetCurSel(0+baud); long lReg;   HKEY hKey;   DWORD MaxValueLength;

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

发表评论

0 个回复

  • VC6.0编写的小程序,使用mscom控件,简单易懂,有详细的注释,在win2k及xp下调试过。...
    VC6.0编写的小程序,使用mscom控件,简单易懂,有详细的注释,在win2k及xp下调试通过。-VC6.0 prepared applet, use mscom controls, easy-to-read, has detailed notes, in win2k and xp debugging through.
    2022-01-27 17:18:29下载
    积分:1
  • 光纤光缆技术发展以及在FTTH中的应用 综述了近期光纤光缆制造、施工及维护技术上的发展特点,分析了其发展趋势,并就我国光纤光缆技术与产业的发展提出了一...
    光纤光缆技术发展以及在FTTH中的应用 综述了近期光纤光缆制造、施工及维护技术上的发展特点,分析了其发展趋势,并就我国光纤光缆技术与产业的发展提出了一些值得思考的问题。FTTH正在走入人们实用化的视野,国内外很多光缆生产厂商或研究所都提出了自己的构想,本文着重介绍了FTTH应用中的一些典型的光纤及光缆技术,对FTTH在我国的发展前景做了分析,并提出了自己在FTTH发展中的一些观点。-Technological development of optical fiber and cable as well as in FTTH Applications in the near future of optical fiber and cable manufacturing, construction and maintenance of the characteristics of technological development, analyzes its development trends, and technology with China s optical fiber and cable industry raised some food for thought. FTTH is the people into a practical perspective, many domestic and international fiber optic cable manufacturers or research institutes have put forward their own ideas, this article highlights the FTTH application of some typical fiber-optic and fiber optic technology, the development of FTTH in China prospects analysis and put forward its own FTTH development in some of the points.
    2022-07-19 21:30:10下载
    积分:1
  • 多线程串口讯实例.rar
    多线程串口通讯实例.rar-multithreading serial communication example. Rar
    2022-02-07 20:31:38下载
    积分:1
  • 这是一份关于串口编程的读书笔记,对于使 用VC进行编程的同行应该有一定的帮助。...
    这是一份关于串口编程的读书笔记,对于使 用VC进行编程的同行应该有一定的帮助。-This a serial programming on the study notes, for the use of VC peer program should be some help.
    2022-02-24 13:52:27下载
    积分:1
  • 用VC轻松实现 ADO_net的链接过程。对大家有很好的帮助作用
    用VC轻松实现 ADO_net的链接过程。对大家有很好的帮助作用-ADO_net with VC easily the course of the link. To help everyone have a good role
    2022-03-05 15:21:18下载
    积分:1
  • FTP 客户端服务器
    文件协议接送客户端/服务器应用程序用 C 语言编写的。应用程序使用套接字来启动客户端和服务器的 tranfert 文件 (如文本或图像之间的通信。
    2022-03-19 22:44:59下载
    积分:1
  • 为了更好编程上传资料的详细功能、包含许多有用的
    为了更好编程上传资料的详细功能、包含许多有用的信息-FOR USE
    2022-02-05 15:03:36下载
    积分:1
  • 11 extractmake LDPC编解码程序
    ldpc的11个程序 encode decode extract make-gen make-ldpc make-pchk print-gen print-pchk rand-src transmit verify 共十一个程序,学习ldpc编码的重要资料-The 11 procedures LDPC encode decode extractmake-gen make-ldpc make-pchk print-genprint-pchk rand-src transmit verify a total of 11 procedures, learn important information LDPC coding
    2022-03-24 13:40:14下载
    积分:1
  • 中华民国曲线说明性能的二元分类问题,类…
    ROC curves illustrate performance on a binary classification problem where classification is based on simply thresholding a set of scores at varying levels. Lenient thresholds give high sensitivity but low specificity, strict thresholds give high specificity but low sensitivity the ROC curve plots this trade-off over a range of thresholds (usually with sens vs 1-spec, but I prefer sens vs spec this code gives you the option). It is theoretically possible to operate anywhere on the convex hull of an ROC curve, so this is plotted too. The area under the curve (AUC) for a ROC plot is a measure of overall accuracy, and the area under the ROCCH is a kind of upper bound on what might be achievable with a weighted combination of differently thresholded results from the given classifier -ROC curves illustrate performance on a binary classification problem where classification is based on simply thresholding a set of scores at varying levels. Lenient thresholds give high sensitivity but
    2022-01-21 23:11:41下载
    积分:1
  • section of the dll vc programming code, mainly through dll visit Parallel, throu...
    一段vc++的dll的编程代码,主要通过dll访问并口,通过并口收发数据-section of the dll vc programming code, mainly through dll visit Parallel, through the parallel port data transceiver
    2023-07-28 15:40:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载