/[H9]/trunk/FlisServer/FlisServer.cpp
ViewVC logotype

Annotation of /trunk/FlisServer/FlisServer.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (hide annotations) (download)
Tue Nov 27 15:26:42 2007 UTC (16 years, 6 months ago) by kevin
File size: 1910 byte(s)
added FlisServer to the project - containing the server software
1 kevin 70 // FlisServer.cpp : Defines the class behaviors for the application.
2     //
3    
4     #include "stdafx.h"
5     #include "FlisServer.h"
6     #include "FlisServerDlg.h"
7    
8     #ifdef _DEBUG
9     #define new DEBUG_NEW
10     #endif
11    
12    
13     // CFlisServerApp
14    
15     BEGIN_MESSAGE_MAP(CFlisServerApp, CWinApp)
16     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
17     END_MESSAGE_MAP()
18    
19    
20     // CFlisServerApp construction
21    
22     CFlisServerApp::CFlisServerApp()
23     {
24     // TODO: add construction code here,
25     // Place all significant initialization in InitInstance
26     }
27    
28    
29     // The one and only CFlisServerApp object
30    
31     CFlisServerApp theApp;
32    
33    
34     // CFlisServerApp initialization
35    
36     BOOL CFlisServerApp::InitInstance()
37     {
38     // InitCommonControls() is required on Windows XP if an application
39     // manifest specifies use of ComCtl32.dll version 6 or later to enable
40     // visual styles. Otherwise, any window creation will fail.
41     InitCommonControls();
42    
43     CWinApp::InitInstance();
44    
45     AfxEnableControlContainer();
46    
47     // Standard initialization
48     // If you are not using these features and wish to reduce the size
49     // of your final executable, you should remove from the following
50     // the specific initialization routines you do not need
51     // Change the registry key under which our settings are stored
52     // TODO: You should modify this string to be something appropriate
53     // such as the name of your company or organization
54     SetRegistryKey(_T("Local AppWizard-Generated Applications"));
55    
56     CFlisServerDlg dlg;
57     m_pMainWnd = &dlg;
58     INT_PTR nResponse = dlg.DoModal();
59     if (nResponse == IDOK)
60     {
61     // TODO: Place code here to handle when the dialog is
62     // dismissed with OK
63     }
64     else if (nResponse == IDCANCEL)
65     {
66     // TODO: Place code here to handle when the dialog is
67     // dismissed with Cancel
68     }
69    
70     // Since the dialog has been closed, return FALSE so that we exit the
71     // application, rather than start the application's message pump.
72     return FALSE;
73     }

  ViewVC Help
Powered by ViewVC 1.1.20