📄 sysconfig.h
字号:
/*
* Openmysee
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#if !defined(AFX_SYSCONFIG_H__EB27FEAF_F954_46BE_AB71_351F8D2BD0B8__INCLUDED_)
#define AFX_SYSCONFIG_H__EB27FEAF_F954_46BE_AB71_351F8D2BD0B8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SysConfig.h : header file
//
//const int gconiChannelNameLength = 20
//const int gconiKeyLength
#define DEF_CHANNELNAME_LENGTH 20
#define DEF_KEY_LENGTH 40
#define DEF_ADDRESS_LENGTH 1024
/////////////////////////////////////////////////////////////////////////////
// CSysConfig dialog
class CSysConfig : public CDialog
{
// Construction
public:
CSysConfig(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSysConfig)
enum { IDD = IDD_SYS_COF };
CString mstrChannelName;
CString mstrPassword;
CString mstrSPAddress;
int miUserID;
// CString mStrMMSAddr;
int miReconnectTime;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSysConfig)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSysConfig)
virtual void OnOK();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
bool JudgeChannelName(string astrChannelName);
bool JudgePassword(string astrPassword);
bool JudgeIP(string astrIP);
bool SaveSysConfig( char* aszFileName);
bool GetCurrentCfgFile(char* aszFileName);
public:
afx_msg void OnBnClickedTestNet();
afx_msg void OnBnClickedOk();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SYSCONFIG_H__EB27FEAF_F954_46BE_AB71_351F8D2BD0B8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -