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 205
下载积分: 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 个回复

  • The procedure produced a simple E
    该程序制作了一个简单的E-MAIL发送器,在VC中可以用ShellExecute函数简单的调用默认的电子邮件程序。-The procedure produced a simple E-MAIL transmitter in the VC can be simple to use ShellExecute function call the default email program.
    2022-07-25 03:35:37下载
    积分:1
  • ldpc WBF算法,经典的算法,matlab源码,可执行
    ldpc WBF算法,经典的算法,matlab源码,可执行-ldpc WBF algorithm, the classical algorithm, matlab source code, executable
    2022-03-23 22:36:07下载
    积分:1
  • 用Visual C++ 编写的俄罗斯方块程序
    用Visual C++ 编写的俄罗斯方块程序-Using Visual C++ programs written in Tetris
    2023-04-21 21:00:03下载
    积分:1
  • AVR USART 代码 C
    /***************************************************** 这个程序由制作 CodeWizardAVR V2.05.0 专业 自动程序生成器 © 版权所有 1998年-2010年帕维尔 · Haiduc,HP InfoTech s.r.l. http://www.hpinfotech.com 项目: 版本: 日期: 2013 年 10 月 13 日 作者: 内华达州 公司: 评论: 芯
    2023-05-03 06:10:03下载
    积分:1
  • 这是在windows上使用modem的例子程序,有很高的实用价值,同时也可以学习到tapi的编程方法...
    这是在windows上使用modem通信的例子程序,有很高的实用价值,同时也可以学习到tapi的编程方法-This is the windows on the use of the example of modem communications procedures with a high degree of practical value, they can also learn the programming methods TAPI
    2023-08-18 10:00:03下载
    积分:1
  • dbpsk调制解调程序
    SYMPCHUNK sets the number of symbols demodulated at once with a constant carrier frequency and symbol timing offset. This is a fundamental decoder parameter that establishes its carrier and symbol timing tracking bandwidth. Set it too low and the demodulator can"t accurately determine carrier frequency and symbol timing on a noisy signal. Set it too high and the demodulator may not be able to track large symbol rate offsets caused by Doppler shift and/or A/D or spacecraft clock errors. Or it might have trouble tracking high rates of change in the carrier frequency due to Doppler acceleration.The current value of SYMPCHUNK is 4*N1 = 512, where N1 = 128 is the order of the convolutional interleaver. 512 symbols is 512 milliseconds at 1000 symbols/sec, giving a frequency/time determination SNR that is 10*log10(512) = 27 dB greater than the Es/N0, not counti
    2022-03-05 11:28:24下载
    积分:1
  • Data link layer ARQ protocol realize software programming, network programming t...
    数据链路层ARQ协议的实现软件编程,网给学习网路编程的朋友有帮助-Data link layer ARQ protocol realize software programming, network programming to the learning network to help a friend has
    2022-02-03 18:46:44下载
    积分:1
  • 数字仿真
    MATLAB for Digital Communication
    2023-01-24 07:30:04下载
    积分:1
  • c++实现的文件传输
    应用背景 1、实现了以tcp协议为基础的客户度与服务端的文件传输 2、以界面的形式实现 3、可以自由设置ip地址 关键技术 1、socket网络通信技术、tcp/ip协议技术 2、mfc的应用程序 3、多线程技术
    2023-09-03 15:50:06下载
    积分:1
  • 视频聊天源码
    视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码视频聊天源码
    2022-02-06 14:46:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载