📄 remcom_rtu.h
字号:
// RemCom_rtu.h : main header file for the REMCOM_RTU DLL
//
#if !defined(AFX_REMCOM_RTU_H__7551ACC7_225F_4B90_894E_C727A38F4CF3__INCLUDED_)
#define AFX_REMCOM_RTU_H__7551ACC7_225F_4B90_894E_C727A38F4CF3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "SerialPort.h"
/////////////////////////////////////////////////////////////////////////////
// CRemCom_rtuApp
// See RemCom_rtu.cpp for the implementation of this class
//
class CRemCom_rtuApp : public CWinApp
{
public:
CRemCom_rtuApp();
HANDLE hEventArray[2];
CSerialPort m_Com; //串口定义
CSerialPort m_Com2; //串口2定义
// CString m_Respond;
CString m_Result; //返回的结果
BOOL m_CheckSum; //校验和
// LONG OnCommunication(WPARAM ch,LPARAM port);
CString AddnumToChar(int Num);
CString AddCheckSum(CString m_str);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRemCom_rtuApp)
//}}AFX_VIRTUAL
//{{AFX_MSG(CRemCom_rtuApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_REMCOM_RTU_H__7551ACC7_225F_4B90_894E_C727A38F4CF3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -