⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comport.clw

📁   本实例实现在VC下如何编写串口(com port)实例(与串口通信), 对初学者弄懂串口的实现过程是很好的一个实例.以及现实将串口读到的数据记录到一个testlog目录中,以做备份
💻 CLW
字号:
; CLW file contains information for the MFC ClassWizard

[General Info]
Version=1
LastClass=CComPortDlg
LastTemplate=CFileDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "comport.h"
LastPage=0

ClassCount=6
Class1=CComPortApp
Class2=CAboutDlg
Class3=CComPortDlg
Class4=Cedtlog

ResourceCount=3
Resource1=IDD_COMPORT_DIALOG
Resource2=IDD_ABOUTBOX
Class5=CSetting
Class6=CLogrecord
Resource3=IDD_dlgSettings

[CLS:CComPortApp]
Type=0
BaseClass=CWinApp
HeaderFile=ComPort.h
ImplementationFile=ComPort.cpp

[CLS:CAboutDlg]
Type=0
BaseClass=CDialog
HeaderFile=ComPortDlg.cpp
ImplementationFile=ComPortDlg.cpp
LastObject=CAboutDlg

[CLS:CComPortDlg]
Type=0
BaseClass=CDialog
HeaderFile=ComPortDlg.h
ImplementationFile=ComPortDlg.cpp
Filter=D
VirtualFilter=dWC
LastObject=IDC_btnSetting

[CLS:Cedtlog]
Type=0
BaseClass=CEdit
HeaderFile=edtlog.h
ImplementationFile=edtlog.cpp
LastObject=Cedtlog

[DLG:IDD_ABOUTBOX]
Type=1
Class=CAboutDlg
ControlCount=4
Control1=IDC_STATIC,static,1342177283
Control2=IDC_STATIC,static,1342308480
Control3=IDC_STATIC,static,1342308352
Control4=IDOK,button,1342373889

[DLG:IDD_COMPORT_DIALOG]
Type=1
Class=CComPortDlg
ControlCount=10
Control1=IDOK,button,1342242817
Control2=IDCANCEL,button,1342242816
Control3=IDC_edtlog,edit,1353789636
Control4=IDC_btnOpen,button,1342245888
Control5=IDC_btnClosed,button,1342242816
Control6=IDC_btnSetting,button,1342242816
Control7=IDC_btnShowLog,button,1342242816
Control8=IDC_btnlastlog,button,1342242816
Control9=IDC_btnsendcommand,button,1342242816
Control10=IDC_btngetbuffer,button,1342242816

[DLG:IDD_dlgSettings]
Type=1
Class=CSetting
ControlCount=17
Control1=IDOK,button,1342242817
Control2=IDCANCEL,button,1342242816
Control3=IDC_STATIC,button,1342177287
Control4=IDC_STATIC,static,1342308352
Control5=IDC_STATIC,static,1342308352
Control6=IDC_STATIC,static,1342308352
Control7=IDC_STATIC,static,1342308352
Control8=IDC_STATIC,static,1342308352
Control9=IDC_strPort,combobox,1344340226
Control10=IDC_DataBits,combobox,1344340226
Control11=IDC_BaudRate,combobox,1344340226
Control12=IDC_Parity,combobox,1344340226
Control13=IDC_StopBits,combobox,1344340226
Control14=IDC_STATIC,button,1342177287
Control15=IDC_radFlowCtrl,button,1342308361
Control16=IDC_radFlowCtrl3,button,1342177289
Control17=IDC_radFlowCtrl2,button,1342177289

[CLS:CSetting]
Type=0
HeaderFile=Setting.h
ImplementationFile=Setting.cpp
BaseClass=CDialog
Filter=D
LastObject=IDC_Parity
VirtualFilter=dWC

[CLS:CLogrecord]
Type=0
HeaderFile=Logrecord.h
ImplementationFile=Logrecord.cpp
BaseClass=CFileDialog
Filter=D

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -