testtoolsconn/stat/desktop/testsource/dllcommstesters/teststatsocketsasync/myclient.cpp
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     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 // myclient.cpp : Defines the class behaviors for the application.
       
    22 //
       
    23 
       
    24 #include "stdafx.h"
       
    25 #include "myclient.h"
       
    26 #include "myclientDlg.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 // CMyclientApp
       
    36 
       
    37 BEGIN_MESSAGE_MAP(CMyclientApp, CWinApp)
       
    38 	//{{AFX_MSG_MAP(CMyclientApp)
       
    39 	//}}AFX_MSG
       
    40 	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
       
    41 END_MESSAGE_MAP()
       
    42 
       
    43 /////////////////////////////////////////////////////////////////////////////
       
    44 // CMyclientApp construction
       
    45 
       
    46 CMyclientApp::CMyclientApp()
       
    47 {
       
    48 }
       
    49 
       
    50 /////////////////////////////////////////////////////////////////////////////
       
    51 // The one and only CMyclientApp object
       
    52 
       
    53 CMyclientApp theApp;
       
    54 
       
    55 /////////////////////////////////////////////////////////////////////////////
       
    56 // CMyclientApp initialization
       
    57 
       
    58 BOOL CMyclientApp::InitInstance()
       
    59 {
       
    60 	if (!AfxSocketInit())
       
    61 	{
       
    62 		AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
       
    63 		return FALSE;
       
    64 	}
       
    65 
       
    66 	// Standard initialization
       
    67 
       
    68 	CMyclientDlg dlg;
       
    69 	m_pMainWnd = &dlg;
       
    70 	int nResponse = dlg.DoModal();
       
    71 	if (nResponse == IDOK)
       
    72 	{
       
    73 	}
       
    74 	else if (nResponse == IDCANCEL)
       
    75 	{
       
    76 	}
       
    77 
       
    78 	// Since the dialog has been closed, return FALSE so that we exit the
       
    79 	//  application, rather than start the application's message pump.
       
    80 	return FALSE;
       
    81 }