home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / vbasic / Data / Utils / XZipComp.exe / XceedEncoding.Cab / F112923_MemoryEncode.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-09  |  2.0 KB  |  72 lines

  1. // MemoryEncode.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MemoryEncode.h"
  6. #include "MemoryEncodeDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMemoryEncodeApp
  16.  
  17. BEGIN_MESSAGE_MAP(CMemoryEncodeApp, CWinApp)
  18.     //{{AFX_MSG_MAP(CMemoryEncodeApp)
  19.         // NOTE - the ClassWizard will add and remove mapping macros here.
  20.         //    DO NOT EDIT what you see in these blocks of generated code!
  21.     //}}AFX_MSG
  22.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  23. END_MESSAGE_MAP()
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CMemoryEncodeApp construction
  27.  
  28. CMemoryEncodeApp::CMemoryEncodeApp()
  29. {
  30.     // TODO: add construction code here,
  31.     // Place all significant initialization in InitInstance
  32. }
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // The one and only CMemoryEncodeApp object
  36.  
  37. CMemoryEncodeApp theApp;
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CMemoryEncodeApp initialization
  41.  
  42. BOOL CMemoryEncodeApp::InitInstance()
  43. {
  44.     // Initialize OLE libraries
  45.     if (!AfxOleInit())
  46.     {
  47.         AfxMessageBox("OLE initialization failed.  Make sure that the OLE libraries are the correct version.");
  48.         return FALSE;
  49.     }
  50.  
  51.     AfxEnableControlContainer();
  52.  
  53.     // Standard initialization
  54.     // If you are not using these features and wish to reduce the size
  55.     //  of your final executable, you should remove from the following
  56.     //  the specific initialization routines you do not need.
  57.  
  58. #ifdef _AFXDLL
  59.     Enable3dControls();            // Call this when using MFC in a shared DLL
  60. #else
  61.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  62. #endif
  63.  
  64.     CMemoryEncodeDlg dlg;
  65.     m_pMainWnd = &dlg;
  66.     dlg.DoModal();
  67.  
  68.     // Since the dialog has been closed, return FALSE so that we exit the
  69.     //  application, rather than start the application's message pump.
  70.     return FALSE;
  71. }
  72.