4 |
#pragma once |
#pragma once |
5 |
#include "afxwin.h" |
#include "afxwin.h" |
6 |
#include "TcpServerClass.h" |
#include "TcpServerClass.h" |
7 |
|
#include "H7Serial.h" |
8 |
|
|
9 |
// CH7ServerDlg dialog |
// CH7ServerDlg dialog |
10 |
class CH7ServerDlg : public CDialog |
class CH7ServerDlg : public CDialog |
19 |
protected: |
protected: |
20 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
// Implementation |
// Implementation |
25 |
protected: |
protected: |
39 |
CButton m_Stop; |
CButton m_Stop; |
40 |
CEdit m_Port; |
CEdit m_Port; |
41 |
int m_Start; |
int m_Start; |
42 |
|
CH7Serial H7Serial; |
43 |
CButton m_Restart; |
CButton m_Restart; |
44 |
afx_msg void OnBnClickedStart(); |
afx_msg void OnBnClickedStart(); |
45 |
int StartTcp(void); |
int StartTcp(void); |
47 |
afx_msg void OnBnClickedRestart(); |
afx_msg void OnBnClickedRestart(); |
48 |
bool ServerInit(void); |
bool ServerInit(void); |
49 |
int StartSerial(void); |
int StartSerial(void); |
50 |
|
void NewLine(void); |
51 |
|
CString OnOff(int value); |
52 |
|
void UpdateStatus(CString name, short value); |
53 |
}; |
}; |