| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- // BarCode.cpp : Implementation of CBarCodeApp and DLL registration.
- #include "stdafx.h"
- #include "BarCode.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- CBarCodeApp NEAR theApp;
- const GUID CDECL BASED_CODE _tlid =
- { 0x4475DDA7, 0xAF22, 0x4CD3, { 0x9E, 0x43, 0xAC, 0xA4, 0xFC, 0xD4, 0xF4, 0xCC } };
- const WORD _wVerMajor = 1;
- const WORD _wVerMinor = 0;
- // CBarCodeApp::InitInstance - DLL initialization
- BOOL CBarCodeApp::InitInstance()
- {
- BOOL bInit = COleControlModule::InitInstance();
- if (bInit)
- {
- // TODO: Add your own module initialization code here.
- }
- return bInit;
- }
- // CBarCodeApp::ExitInstance - DLL termination
- int CBarCodeApp::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;
- }
|