📄 netdlltestdlg.h
字号:
// NetDllTestDlg.h : header file
//
#if !defined(AFX_NETDLLTESTDLG_H__DC579FDF_4D67_448A_972A_F5EDC0B945BF__INCLUDED_)
#define AFX_NETDLLTESTDLG_H__DC579FDF_4D67_448A_972A_F5EDC0B945BF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "..\public\siArNetDllUser_T.h"
/////////////////////////////////////////////////////////////////////////////
// CNetDllTestDlg dialog
class CNetDllTestDlg : public CDialog
{
// Construction
public:
CNetDllTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CNetDllTestDlg)
enum { IDD = IDD_NETDLLTEST_DIALOG };
CString m_strLocalIP;
CString m_strRemoteIP;
int m_iPort;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNetDllTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
//使用ArNetDllUser_T类可以方便的动态加载NetDll
ArNetDllUser_T m_NetDllUser;
ArClient_T* m_pClient;
ArServer_T* m_pServer;
// Generated message map functions
//{{AFX_MSG(CNetDllTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnConnect();
afx_msg void OnBtnDisconnect();
afx_msg void OnBtnSenddata();
afx_msg void OnBtnSendpackage();
afx_msg void OnBtnBroad();
afx_msg void OnBtnSenddata2();
afx_msg void OnBtnSendpackage2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//定义网络响应事件函数
static void __stdcall OnClientConnect(ArSenderInfo_T& RemoteInfo, void* pPara);
static void __stdcall OnClientDisconnect(ArSenderInfo_T& RemoteInfo, void* pPara);
static void __stdcall OnServerReceiveData(char* pcData, int iLength, ArSenderInfo_T& Info, void* pPara);
static void __stdcall OnClientReceiveData(char* pcData, int iLength, ArSenderInfo_T& Info, void* pPara);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NETDLLTESTDLG_H__DC579FDF_4D67_448A_972A_F5EDC0B945BF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -