.. crypt.h"
# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILEchar THIS_FILE [] = __ FILE__;
# endif_MESSAGE_MAP (CLip_serverApp, CWinApp)
// {{AFX_MSG_MAP (CLip_serverApp) _COMMAND (ID_APP_ABOUT, OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}} AFX_MSG_MAP
// Standard file based document commands_COMMAND (ID_FILE_NEW, CWinApp :: OnFileNew) _COMMAND (ID_FILE_OPEN, CWinApp :: OnFileOpen) _MESSAGE_MAP () _serverApp :: CLip_serverApp ()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
} _serverApp theApp; CLip_serverApp :: InitInstance ()
{(! AfxSocketInit ())
{(IDP_SOCKETS_INIT_FAILED); FALSE;
} d (NULL); (d.DoModal () == IDOK) {= d.m_Port; = d.m_Password; = new CDatabase ();> OpenEx (NULL, 0); = new CRecordset (pLipDB); = false; (WaitingForConnect, NULL);
} false;
# ifdef _AFXDLLdControls () ;//Call this when using MFC in a shared DLL
# elsedControlsStatic () ;//Call this when linking to MFC statically
# endif (_T ("Local AppWizard-Generated Applications")); (0);// Load standard INI file options (including MRU) * pDocTemplate; = new CSingleDocTemplate (_MAINFRAME, _CLASS ( CLip_serverDoc), _CLASS (CMainFrame),// ​​main SDI frame window_CLASS (CLip_serverView)); (pDocTemplate);
// Parse command line for standard shell commands, DDE, file opencmdInfo; (cmdInfo);
// Dispatch commands specified on the command line (! ProcessShellCommand (cmdInfo)) FALSE;
// The one and only window has been initialized, so show and update it._pMainWnd-> ShowWindow (SW_SHOW); _pMainWnd-> UpdateWindow (); TRUE;
} CLip_serverApp :: ExitInstance ()
{(pLipRec) {> Close (); pLipRec;
} (pLipDB) {> Close (); pLipDB;
} CWinApp :: ExitInstance ();
} CAboutDlg: public CDialog
{: ();
// Dialog Data ​​p>
// {{AFX_DATA (CAboutDlg) {IDD = IDD_ABOUTBOX};
//}} AFX_DATA
// ClassWizard generated virtual function overrides
// {{AFX_VIRTUAL (CAboutDlg): void DoDataExchange (CDataExchange * pDX);// DDX/DDV support
//}} AFX_VIRTUAL
// Implementation: _MESSAGE_MAP ()