home *** CD-ROM | disk | FTP | other *** search
- //------------------------------------------------------------------//
- // Implementation of CQuoteApp and DLL registration //
- // //
- // System: Simple first control. //
- // Developing Applications with OCX //
- // Module: CQuoteApp class implementation //
- // Date: 1/11/1994 //
- // Rev: 1.0 //
- // //
- // Author: John Toohey //
- // //
- //------------------------------------------------------------------//
-
-
- #include "stdafx.h"
- #include "quote.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- CQuoteApp NEAR theApp;
-
- const GUID CDECL BASED_CODE _tlid =
- { 0x7c647083, 0xf1cb, 0x101b, { 0x81, 0xec, 0xb2, 0x31, 0x69, 0x42, 0x46, 0x30 } };
- const WORD _wVerMajor = 1;
- const WORD _wVerMinor = 0;
-
- ////////////////////////////////////////////////////////////////////////////
- // CQuoteApp::InitInstance - DLL initialization
- //
- BOOL CQuoteApp::InitInstance()
- {
- BOOL bInit = COleControlModule::InitInstance();
-
- if (bInit)
- {
- // TODO: Add your own module initialization code here.
- }
-
- return bInit;
- }
-
-
- ////////////////////////////////////////////////////////////////////////////
- // CQuoteApp::ExitInstance - DLL termination
-
- int CQuoteApp::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);
-
- if (!COleObjectFactoryEx::UpdateRegistryAll(TRUE))
- return ResultFromScode(SELFREG_E_CLASS);
-
- return NOERROR;
- }
- //--------------------------------------------------------------------------
- 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;
- }
- //--------------------------------------------------------------------------
- //--------------------------------------------------------------------------
-