режі. Самовчитель: - М.: Видавничий дім «³льямсВ», 2003
7.ru.wikipedia.org <# "justify"> магазин мережа клієнт сервер
Додаток А (обов'язковий)
Лістинг програмного тексту
Додаток Сервер
# include "stdafx.h"
# include "lip_server.h"
# include "MainFrm.h"
# include "lip_serverDoc.h"
# include "lip_serverView.h"
# include "ParamDlg.h"
# include "global.h"
# include ".. 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 RU) * 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_...