//
//  Copyright (c) 2001, Reson, Inc. All Rights Reserved.
//
//  Filename:   NetUtils.cpp
//
//  Project:    6046.
//
//  Author(s):  W. Arcus
//
//  Purpose:    Defines the initialization routines for the NetUtils DLL 
//              in support of both the Dry and Wet end applications.
//
//  Notes:      Since this DLL is dynamically linked against the MFC
//              functions exported from must it that call into MFC must have 
//              the AFX_MANAGE_STATE macro added at the very beginning of the function.
//              Moreover, it must appear as the first statement within the 
//              function, even before any object variable declarations
//              as their constructors may generate calls into the MFC DLL.
//
//              See MFC Technical Notes 33 and 58 for additional details.
//

#include "StdAfx.h"
#include "NetUtils.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNetUtilsApp

BEGIN_MESSAGE_MAP(CNetUtilsApp, CWinApp)
    //{{AFX_MSG_MAP(CNetUtilsApp)
        // NOTE - the ClassWizard will add and remove mapping macros here.
        //    DO NOT EDIT what you see in these blocks of generated code!
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNetUtilsApp construction

CNetUtilsApp::CNetUtilsApp( void )
{
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CNetUtilsApp object

CNetUtilsApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CNetUtilsApp initialization

BOOL CNetUtilsApp::InitInstance( void )
{
    if ( ! AfxSocketInit() )
    {
        //AfxMessageBox( IDP_SOCKETS_INIT_FAILED );
        return FALSE;
    }

    return TRUE;
}
