|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // dlltest.cpp : Defines the class behaviors for the application. |
|
22 // |
|
23 |
|
24 #include "stdafx.h" |
|
25 #include "dlltest.h" |
|
26 #include "dlltestDlg.h" |
|
27 |
|
28 #ifdef _DEBUG |
|
29 #define new DEBUG_NEW |
|
30 #undef THIS_FILE |
|
31 static char THIS_FILE[] = __FILE__; |
|
32 #endif |
|
33 |
|
34 ///////////////////////////////////////////////////////////////////////////// |
|
35 // CDlltestApp |
|
36 |
|
37 BEGIN_MESSAGE_MAP(CDlltestApp, CWinApp) |
|
38 //{{AFX_MSG_MAP(CDlltestApp) |
|
39 //}}AFX_MSG |
|
40 ON_COMMAND(ID_HELP, CWinApp::OnHelp) |
|
41 END_MESSAGE_MAP() |
|
42 |
|
43 ///////////////////////////////////////////////////////////////////////////// |
|
44 // CDlltestApp construction |
|
45 |
|
46 CDlltestApp::CDlltestApp() |
|
47 { |
|
48 } |
|
49 |
|
50 ///////////////////////////////////////////////////////////////////////////// |
|
51 // The one and only CDlltestApp object |
|
52 |
|
53 CDlltestApp theApp; |
|
54 |
|
55 ///////////////////////////////////////////////////////////////////////////// |
|
56 // CDlltestApp initialization |
|
57 |
|
58 BOOL CDlltestApp::InitInstance() |
|
59 { |
|
60 // Standard initialization |
|
61 |
|
62 CDlltestDlg dlg; |
|
63 m_pMainWnd = &dlg; |
|
64 int nResponse = dlg.DoModal(); |
|
65 if (nResponse == IDOK) |
|
66 { |
|
67 } |
|
68 else if (nResponse == IDCANCEL) |
|
69 { |
|
70 } |
|
71 |
|
72 // Since the dialog has been closed, return FALSE so that we exit the |
|
73 // application, rather than start the application's message pump. |
|
74 return FALSE; |
|
75 } |