00001 // MgaDecoratorWrap.cpp : Defines the initialization routines for the DLL. 00002 // 00003 00004 #include "stdafx.h" 00005 #include "MgaDecoratorWrap.h" 00006 00007 #ifdef _DEBUG 00008 #define new DEBUG_NEW 00009 #undef THIS_FILE 00010 static char THIS_FILE[] = __FILE__; 00011 #endif 00012 00013 // 00014 // Note! 00015 // 00016 // If this DLL is dynamically linked against the MFC 00017 // DLLs, any functions exported from this DLL which 00018 // call into MFC must have the AFX_MANAGE_STATE macro 00019 // added at the very beginning of the function. 00020 // 00021 // For example: 00022 // 00023 // extern "C" BOOL PASCAL EXPORT ExportedFunction() 00024 // { 00025 // AFX_MANAGE_STATE(AfxGetStaticModuleState()); 00026 // // normal function body here 00027 // } 00028 // 00029 // It is very important that this macro appear in each 00030 // function, prior to any calls into MFC. This means that 00031 // it must appear as the first statement within the 00032 // function, even before any object variable declarations 00033 // as their constructors may generate calls into the MFC 00034 // DLL. 00035 // 00036 // Please see MFC Technical Notes 33 and 58 for additional 00037 // details. 00038 // 00039 00041 // CMgaDecoratorWrapApp 00042 00043 BEGIN_MESSAGE_MAP(CMgaDecoratorWrapApp, CWinApp) 00044 //{{AFX_MSG_MAP(CMgaDecoratorWrapApp) 00045 // NOTE - the ClassWizard will add and remove mapping macros here. 00046 // DO NOT EDIT what you see in these blocks of generated code! 00047 //}}AFX_MSG_MAP 00048 END_MESSAGE_MAP() 00049 00051 // CMgaDecoratorWrapApp construction 00052 00053 CMgaDecoratorWrapApp::CMgaDecoratorWrapApp() 00054 { 00055 // TODO: add construction code here, 00056 // Place all significant initialization in InitInstance 00057 } 00058 00060 // The one and only CMgaDecoratorWrapApp object 00061 00062 CMgaDecoratorWrapApp theApp;