-
上位机软件动态获取计算机COM口
应用背景
通过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;
- 2022-03-14 01:15:16下载
- 积分:1
-
CSR蓝牙MP3播放USB DONGLE源码,支持蓝牙A2DP协议,实现无MP3播放功能...
CSR蓝牙MP3播放USB DONGLE源码,支持蓝牙A2DP协议,实现无MP3播放功能-CSR Bluetooth USB DONGLE source MP3 player, Bluetooth A2DP support agreement, realize no MP3 playback
- 2022-08-21 23:25:15下载
- 积分:1
-
串口编程 或许很多人人都用的到 呵呵~共享啦
串口编程 或许很多人人都用的到 呵呵~共享啦-directio
- 2022-05-16 02:47:35下载
- 积分:1
-
实现了简单的通信功能,是比较好的socket教材
实现了简单的通信功能,是比较好的socket教材-Realize a simple communications functions, is a better socket material
- 2022-01-30 15:48:46下载
- 积分:1
-
rtp document , it is useful for learning rtp
rtp document , it is useful for learning rtp-rtp document, it is useful for learning rtp
- 2022-05-21 13:00:09下载
- 积分:1
-
在vb中进行crc校验,程序未经过测试,估计可能有点问题,仅供参考。...
在vb中进行crc校验,程序未经过测试,估计可能有点问题,仅供参考。-in vb for crc check, the procedure has not been tested, it is estimated that perhaps, for reference purposes only.
- 2022-03-05 05:31:51下载
- 积分:1
-
串口读写
串口读写 -Serial reading and writing
- 2022-02-05 01:27:03下载
- 积分:1
-
摘要:J2ME在无线应用程序开发中的应用
摘要:J2ME在无线应用程序开发中的应用-Abstract : J2ME wireless applications in the Application Development
- 2022-10-02 06:50:03下载
- 积分:1
-
matlab image processing command Guinness welcome download
matlab 图像处理 命令大全 欢迎下载-matlab image processing command Guinness welcome download
- 2022-06-14 12:15:02下载
- 积分:1
-
CnComm,VC串口通信类的最新版本,包括所有源C.
CnComm,VC串口通信类最新版,包括所有源码和使用文档-CnComm, VC serial communication class the latest version, including all source code and the use of documents
- 2022-05-22 04:50:35下载
- 积分:1