RealPlayX.cpp
资源名称:ActiveX.rar [点击查看]
上传用户:sy_eblight
上传日期:2020-11-03
资源大小:267k
文件大小:2k
源码类别:
Static控件
开发平台:
Visual C++
- // RealPlayX.cpp : Implementation of CRealPlayXApp and DLL registration.
- #include "stdafx.h"
- #include "RealPlayX.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- CRealPlayXApp NEAR theApp;
- const GUID CDECL BASED_CODE _tlid =
- { 0x729d5d3c, 0xc734, 0x4845, { 0xa4, 0x49, 0x2d, 0xa5, 0xf2, 0x93, 0x16, 0x70 } };
- const WORD _wVerMajor = 1;
- const WORD _wVerMinor = 0;
- ////////////////////////////////////////////////////////////////////////////
- // CRealPlayXApp::InitInstance - DLL initialization
- BOOL CRealPlayXApp::InitInstance()
- {
- BOOL bInit = COleControlModule::InitInstance();
- if (bInit)
- {
- // TODO: Add your own module initialization code here.
- }
- return bInit;
- }
- ////////////////////////////////////////////////////////////////////////////
- // CRealPlayXApp::ExitInstance - DLL termination
- int CRealPlayXApp::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;
- }
- /////////////////////////////////////////////////////////////////////////////
- // DllUnregisterServer - Removes entries from the system registry
- STDAPI DllUnregisterServer(void)
- {
- AFX_MANAGE_STATE(_afxModuleAddrThis);
- if (!AfxOleUnregisterTypeLib(_tlid, _wVerMajor, _wVerMinor))
- return ResultFromScode(SELFREG_E_TYPELIB);
- if (!COleObjectFactoryEx::UpdateRegistryAll(FALSE))
- return ResultFromScode(SELFREG_E_CLASS);
- return NOERROR;
- }