www.pudn.com > mysecP.rar > mysecDlg.h
// mysecDlg.h : header file // #if !defined(AFX_MYSECDLG_H__398EB886_3D46_11D9_952A_8C1C7F600163__INCLUDED_) #define AFX_MYSECDLG_H__398EB886_3D46_11D9_952A_8C1C7F600163__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CMysecDlg dialog #define MAXBUFFERSIZE 10000 #include "MemoryRW.h" #include#include "SystemTray.h" typedef struct{ int number; char NAME[100]; long ADDRESSFROM; long ADDRESSTO; int select; }MEASURE; class CMysecDlg : public CDialog { // Construction public: CMysecDlg(CWnd* pParent = NULL); // standard constructor ~CMysecDlg(); CSystemTray m_TrayIcon; CArray arrayMaster; MEASURE measure; CString sModify; // Dialog Data //{{AFX_DATA(CMysecDlg) enum { IDD = IDD_MYSEC_DIALOG }; CEdit m_edit2; CListCtrl m_list; CEdit m_edit; CButton m_button1; CButton m_disconnect; CButton m_connect; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMysecDlg) public: virtual BOOL DestroyWindow(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CMysecDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); virtual void OnOK(); virtual void OnCancel(); afx_msg void OnButton2(); afx_msg void OnButton3(); afx_msg void OnButton1(); afx_msg void OnChangeEdit2(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnClose(); afx_msg void OnAppExit(); afx_msg void OnMenushow(); afx_msg void OnAddresstable(); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: char server[20]; int sin_port; void ReadConfig(); int select; CString m_message; void SetRun(); void SetState(BOOL b_link); BOOL CheckAdress(); void GetaAddressTable(); long GetAdress(COleVariant Address); BOOL OpenDatabase(CString DataBaseName, CString TableName); int RecordMax; void GetThanWrite(); void SetHideTimer(); UINT m_Timer; CMemoryRW m_WriteData; void GetData(void *buffer); SOCKET clisock; sockaddr_in cli; int count,ee; }; UINT thread(LPVOID); //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MYSECDLG_H__398EB886_3D46_11D9_952A_8C1C7F600163__INCLUDED_)