axAnxOggPlayer.cpp

Go to the documentation of this file.
00001 // axAnxOggPlayer.cpp : Implementation of CaxAnxOggPlayerApp and DLL registration.
00002 
00003 #include "stdafx.h"
00004 #include "axAnxOggPlayer.h"
00005 
00006 #ifdef _DEBUG
00007 #define new DEBUG_NEW
00008 #endif
00009 
00010 
00011 CaxAnxOggPlayerApp NEAR theApp;
00012 
00013 const GUID CDECL BASED_CODE _tlid =
00014                 { 0x375E2E46, 0x3968, 0x41FA, { 0x99, 0xBE, 0x35, 0x52, 0x3D, 0xC5, 0x7B, 0x4E } };
00015 const WORD _wVerMajor = 1;
00016 const WORD _wVerMinor = 0;
00017 
00018 
00019 
00020 // CaxAnxOggPlayerApp::InitInstance - DLL initialization
00021 
00022 BOOL CaxAnxOggPlayerApp::InitInstance()
00023 {
00024         BOOL bInit = COleControlModule::InitInstance();
00025 
00026         if (bInit)
00027         {
00028                 // TODO: Add your own module initialization code here.
00029         }
00030 
00031         return bInit;
00032 }
00033 
00034 
00035 
00036 // CaxAnxOggPlayerApp::ExitInstance - DLL termination
00037 
00038 int CaxAnxOggPlayerApp::ExitInstance()
00039 {
00040         // TODO: Add your own module termination code here.
00041 
00042         return COleControlModule::ExitInstance();
00043 }
00044 
00045 
00046 
00047 // DllRegisterServer - Adds entries to the system registry
00048 
00049 STDAPI DllRegisterServer(void)
00050 {
00051         AFX_MANAGE_STATE(_afxModuleAddrThis);
00052 
00053         if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid))
00054                 return ResultFromScode(SELFREG_E_TYPELIB);
00055 
00056         if (!COleObjectFactoryEx::UpdateRegistryAll(TRUE))
00057                 return ResultFromScode(SELFREG_E_CLASS);
00058 
00059         return NOERROR;
00060 }
00061 
00062 
00063 
00064 // DllUnregisterServer - Removes entries from the system registry
00065 
00066 STDAPI DllUnregisterServer(void)
00067 {
00068         AFX_MANAGE_STATE(_afxModuleAddrThis);
00069 
00070         if (!AfxOleUnregisterTypeLib(_tlid, _wVerMajor, _wVerMinor))
00071                 return ResultFromScode(SELFREG_E_TYPELIB);
00072 
00073         if (!COleObjectFactoryEx::UpdateRegistryAll(FALSE))
00074                 return ResultFromScode(SELFREG_E_CLASS);
00075 
00076         return NOERROR;
00077 }

Generated on Tue Feb 15 14:54:22 2005 for oggdsf by  doxygen 1.3.9