comfile.h
来自「modbus通讯」· C头文件 代码 · 共 40 行
H
40 行
// ComFile.h: interface for the CComFile class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMFILE_H__62917CA7_15BB_4FEC_97F3_87847773CB99__INCLUDED_)
#define AFX_COMFILE_H__62917CA7_15BB_4FEC_97F3_87847773CB99__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/*
* COM文件信息
*/
struct strComInfo {
CString strComNumber;
int nDataBits;
int ntimes;
int nOverTime;
CString strStopBits;
int nPersScond;
CString strParity;
CString strFormats;
};
class CComFile
{
public:
BOOL openComFile();
CString m_strFileName;
CComFile();
virtual ~CComFile();
public:
void WriteComInfo(strComInfo info);
strComInfo m_strCom;
strComInfo getComInfo();
};
#endif // !defined(AFX_COMFILE_H__62917CA7_15BB_4FEC_97F3_87847773CB99__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?