0
|
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 |
// testcom.cpp : Defines the class behaviors for the application.
|
|
22 |
//
|
|
23 |
|
|
24 |
#include "stdafx.h"
|
|
25 |
#include "testcom.h"
|
|
26 |
#include "testcomDlg.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 |
// CTestcomApp
|
|
36 |
|
|
37 |
BEGIN_MESSAGE_MAP(CTestcomApp, CWinApp)
|
|
38 |
//{{AFX_MSG_MAP(CTestcomApp)
|
|
39 |
//}}AFX_MSG
|
|
40 |
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
|
|
41 |
END_MESSAGE_MAP()
|
|
42 |
|
|
43 |
/////////////////////////////////////////////////////////////////////////////
|
|
44 |
// CTestcomApp construction
|
|
45 |
|
|
46 |
CTestcomApp::CTestcomApp()
|
|
47 |
{
|
|
48 |
}
|
|
49 |
|
|
50 |
/////////////////////////////////////////////////////////////////////////////
|
|
51 |
// The one and only CTestcomApp object
|
|
52 |
|
|
53 |
CTestcomApp theApp;
|
|
54 |
|
|
55 |
/////////////////////////////////////////////////////////////////////////////
|
|
56 |
// CTestcomApp initialization
|
|
57 |
|
|
58 |
BOOL CTestcomApp::InitInstance()
|
|
59 |
{
|
|
60 |
// Standard initialization
|
|
61 |
|
|
62 |
CTestcomDlg 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 |
}
|