/***************************************************************************
**
**    $Header$
**
**    $Log$
** 
****************************************************************************/

/****************************************************************************
**
**  Name:  ERRORINIT.CPP
**
**  Description:
**      Entry points for ERRTEXT.DLL.
**
**  Status:  CODED
**
**    Rev 1.1   15 MAR  8:30:00am   Jamoon Zhou
** Initial revision.
**
**  Copyright (C) 1996 Microtek International.  All rights reserved.
**
*****************************************************************************/

                       /****************************
                        *                          *
                        *       INCLUDE FILES      *
                        *                          *
                        ****************************/

#include <afxwin.h>


                       /****************************
                        *                          *
                        *     LOCAL DEFINITIONS    *
                        *                          *
                        ****************************/

                       /****************************
                        *                          *
                        *    EXTERNAL VARIABLES    *
                        *                          *
                        ****************************/


                       /****************************
                        *                          *
                        *     LOCAL PROTOTYPES     *
                        *                          *
                        ****************************/
 HINSTANCE hTextInst;

                       /****************************
                        *                          *
                        *      EXECUTABLE CODE     *
                        *                          *
                        ****************************/

//#include "afxdllx.h"    // standard MFC Extension DLL routines

//static AFX_EXTENSION_MODULE NEAR extensionDLL = { NULL, NULL };

/////////////////////////////////////////////////////////////////////////////
// Library init
//#ifdef _AFXDLL

int FAR PASCAL LibMain(HINSTANCE hInstance, WORD wDataSeg,
                          WORD cbHeapSize, LPSTR lpCmdLine)
{
	//AfxInitExtensionModule(extensionDLL, hInstance);
	hTextInst = hInstance;
	return 1;
}


extern "C" int FAR PASCAL  _WEP(int)
{
	return 1;
}

/*
#else

class CErrorDLL : public CWinApp
{
public:
	virtual BOOL InitInstance(); // Initialization
	virtual int ExitInstance();  // Termination (WEP-like code)

	// nothing special for the constructor
	CErrorDLL(const char* pszAppName=NULL)
		: CWinApp(pszAppName)
		{ }
};

BOOL CErrorDLL::InitInstance()
{
	// any DLL initialization goes here
	TRACE("ICE_ERRP.DLL initializing\n");
	SetDialogBkColor();     // grey dialogs in the DLL as well
	hTextInst = AfxGetInstanceHandle();
	return TRUE;
}

int CErrorDLL::ExitInstance()
{
	// any DLL termination goes here (WEP-like code)
	return CWinApp::ExitInstance();
}

CErrorDLL  NEAR errorDLL("ICE_ERRP.DLL");
    
#endif    
*/
    