// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + // + FileName: CalPoll.cpp Author: S.Hammond // + // + Version: 1 Date: 23/June/1999 // + // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + // + This file contains the code to control the application initialization // + // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #include "stdafx.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define _CALPOLL_C_ #include "CalPoll.h" #include "Comms.h" #include "CalPollDlg.h" // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + CCalPollApp // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BEGIN_MESSAGE_MAP(CCalPollApp, CWinApp) //{{AFX_MSG_MAP(CCalPollApp) //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + CCalPollApp construction // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CCalPollApp::CCalPollApp() { } // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + CCalPollApp initialization // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BOOL CCalPollApp::InitInstance() { CCalPollDlg dlg; int nResponse; // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Standard initialization // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #ifdef _AFXDLL // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Calls this when using MFC in a shared DLL // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Enable3dControls(); #else // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Calls this when linking to MFC statically // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Enable3dControlsStatic(); #endif // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Create the main dialog window and run the modal code // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ m_pMainWnd = &dlg; nResponse = dlg.DoModal(); // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // + Since the dialog has been closed, return FALSE so that we exit the // + application, rather than start the application's message pump. // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ return FALSE; }