-
上位机软件动态获取计算机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
-
GSM无线子系统信令
GSM无线子系统信令 -GSM wireless subsystem signaling
- 2022-05-31 17:24:14下载
- 积分:1
-
RS232 interface demo program
RS232接口演示程序-RS232 interface demo program
- 2022-01-31 16:16:16下载
- 积分:1
-
Serial port terminal software to view send/receive data communications.
Serial port terminal software to view send/receive data communications.
- 2023-04-26 11:25:04下载
- 积分:1
-
socket通讯类封装,适合C++编程引用,简单明了,可以喝ftp.tar结合使用。...
socket通讯类封装,适合C++编程引用,简单明了,可以喝ftp.tar结合使用。-socket Communication package for C++ programming reference, simple and clear, you can drink ftp.tar used in combination.
- 2023-04-11 12:10:03下载
- 积分:1
-
功能丰富的串口通讯程序
功能丰富的串口通讯程序 -Serial communication example with abundant functions
- 2022-03-20 04:13:41下载
- 积分:1
-
This is my small core Nano Writing Tutorial Singlechip! SCM is based on the 51!...
这是我写的纳米小芯单片机教程!是基于51单片机的!也许里面有错误!希望大家给我指出!-This is my small core Nano Writing Tutorial Singlechip! SCM is based on the 51! Maybe there are wrong! Hope that everyone pointed out to me!
- 2022-03-02 15:05:38下载
- 积分:1
-
GSM 07.05通讯标准
GSM 07.05通讯标准-GSM 07.05 communications standards
- 2022-03-10 16:35:01下载
- 积分:1
-
Siemens plc Communication between PC and the source program, detailed descriptio...
西门子plc与上位机通信的源码程序,详细的说明西门子ppi通信协议的应用-Siemens plc Communication between PC and the source program, detailed description of the application of communication protocol Siemens ppi
- 2022-05-18 08:39:58下载
- 积分:1
-
通达信波段密码公式
通达信波段密码主图指标公式, 信号可靠好用,可以进行自己编辑和修改,构建自己的交易系统用。正所谓波段是金,短线是银,读者可以根据自己的操盘风格修改代码,以形成自己的交易风格。
- 2022-06-28 00:45:38下载
- 积分:1