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

  • 基于opnet的自编统计量测试代码,对使用opnet中的API函数的统计量函数...
    基于opnet的自编统计量测试代码,对使用opnet中的API函数的统计量函数-OPNET based on statistics of self-test code, the use of OPNET in the Statistics API function function
    2022-03-18 00:58:42下载
    积分:1
  • 该文件是用于映射解码。你可以用matlab打开它。
    The file is for MAP decoding. You can use matlab to open it.
    2022-03-26 03:11:34下载
    积分:1
  • dragonchip:作为一个示范的定时器的使用0,1,2,作为反例,T.
    Dragonchip:一个演示如可使用Timer 0, 1, 2作为计数器的例子,This program counts pulses generated by Counter A using Timer 0, 1, 2,at the same time and toggle PA2, PA1 and PA3 respectively. Pulses from PA1 then feed into PB6(T2EX) to trigger Timer 2 interrupt to toggle PA4. The Crystal frequency is 8MHz.-Dragonchip : as a demonstration of the use Timer 0, 1, 2, as counter examples, This program counts pulses generated by Counte r A using Timer 0, 1, 2, at the same time and toggle PA2. PA1 and PA3 respectively. Pulses from PA1 then f eed into PB6 (T2EX) to trigger Timer 2 interrupt to toggle mouse. The Crystal frequency is 8MHz.
    2023-04-20 01:00:04下载
    积分:1
  • SD卡1.0规范文档,英文版文档,简单实用。
    SD卡1.0规范文档,英文版文档,简单实用。-SD Card 1.0 specification document, English version of the document
    2022-05-06 19:25:36下载
    积分:1
  • gfdgdhdhfdhg gjhghjgjhghjg
    gfdgdhdhfdhg gjhghjgjhghjg
    2022-01-31 16:51:59下载
    积分:1
  • This is on the spatial spectrum of matlab can be quite good
    这个也是关于空间谱的matlab 挺好的 可以-This is on the spatial spectrum of matlab can be quite good
    2023-08-31 04:35:03下载
    积分:1
  • 这是一个通讯口软件
    这是一个通讯口软件-This is a communication interface software
    2022-01-26 08:22:17下载
    积分:1
  • Real
    Real-Time Executive (REX) User Guide for Qualcomm Device
    2022-02-21 11:45:25下载
    积分:1
  • 绘制噪声
    用于绘制高斯噪声。这些程序都用在传输信号时的噪声信道的信噪比计算
    2022-05-26 09:46:58下载
    积分:1
  • 使用 almounti 技术的 mimo 检测
    在本文中,误码率 (BER) 分析的分集技术和放大,转发 (AF) 无线中继网络 (警告) 在各种多径衰落信道下处理。发射分集和接收的分集技术是审议并最终扩展到多输入多输出 (MIMO) 系统。通常瑞利分布被采用模型短期内信道的统计特性,在高频率结果,在瑞利、 莱斯和仲上平坦衰落信道误码性能的分集技术的特点。此外,本文的主要贡献是最佳线性无偏的估计 (BLUE) 基于误码率分析< 跨风格 ="字体-大小: 12.0pt ; 字体系列:"">在瑞利平坦衰落信道环境下的 AFWRN。
    2023-07-16 22:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载