home *** CD-ROM | disk | FTP | other *** search
- // localize.cpp : Implementation of CLocalizeApp and DLL registration.
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1995 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
-
- #include "stdafx.h"
- #include "localize.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- CLocalizeApp NEAR theApp;
-
- const GUID CDECL BASED_CODE _tlid =
- { 0x879d6fe3, 0x5470, 0x101b, { 0xb5, 0x7b, 0x0, 0x60, 0x8c, 0xc9, 0x6a, 0xfa } };
- const WORD _wVerMajor = 1;
- const WORD _wVerMinor = 0;
-
-
- ////////////////////////////////////////////////////////////////////////////
- // CLocalizeApp::InitInstance - DLL initialization
-
- BOOL CLocalizeApp::InitInstance()
- {
- BOOL bInit = COleControlModule::InitInstance();
-
- if (bInit)
- {
- // TODO: Add your own module initialization code here.
- }
-
- return bInit;
- }
-
-
- ////////////////////////////////////////////////////////////////////////////
- // CLocalizeApp::ExitInstance - DLL termination
-
- int CLocalizeApp::ExitInstance()
- {
- // TODO: Add your own module termination code here.
-
- return COleControlModule::ExitInstance();
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // DllRegisterServer - Adds entries to the system registry
-
- STDAPI DllRegisterServer(void)
- {
- AFX_MANAGE_STATE(_afxModuleAddrThis);
-
- if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid))
- return ResultFromScode(SELFREG_E_TYPELIB);
-
- AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid, _T("localifr.tlb"));
- AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid, _T("localide.tlb"));
-
- if (!COleObjectFactoryEx::UpdateRegistryAll(TRUE))
- return ResultFromScode(SELFREG_E_CLASS);
-
- return NOERROR;
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // DllUnregisterServer - Removes entries from the system registry
-
- STDAPI DllUnregisterServer(void)
- {
- AFX_MANAGE_STATE(_afxModuleAddrThis);
-
- if (!AfxOleUnregisterTypeLib(_tlid))
- return ResultFromScode(SELFREG_E_TYPELIB);
-
- if (!COleObjectFactoryEx::UpdateRegistryAll(FALSE))
- return ResultFromScode(SELFREG_E_CLASS);
-
- return NOERROR;
- }
-