remcom_rtu.h

来自「串口传输数据库函数」· C头文件 代码 · 共 57 行

H
57
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?