Реферат: Разработка программы для обмена тестовыми сообщениями

{

// InitCommonControls () требуется на Windows XP, если прикладная декларация //определяет использование ComCtl32. dll версии 6 или позже позволить визуальные стили.

//Иначе, любое создание окна потерпит неудачу.

InitCommonControls();

CWinApp::InitInstance();

AfxEnableControlContainer();

if (!AfxSocketInit())

{

AfxMessageBox("Нет инициализации сокета!");

return FALSE;

}

CChatCppDlg dlg;

m_pMainWnd = &dlg;

INT_PTR nResponse = dlg.DoModal();

if (nResponse == IDOK)

{

// TODO: Place code here to handle when the dialog is

// dismissed with OK

}

else if (nResponse == IDCANCEL)

{

// TODO: Place code here to handle when the dialog is

// dismissed with Cancel

}

// Since the dialog has been closed, return FALSE so that we exit the

// application, rather than start the application's message pump.

return FALSE;

}

///////////////////////////////////////////////////////// БЛОК 3 ////////////////////////////////////////////////////////////////

К-во Просмотров: 627
Бесплатно скачать Реферат: Разработка программы для обмена тестовыми сообщениями