]> Creatis software - clitk.git/blob - utilities/CxImage/CxImageDLL/CxImageMfcDll.cpp
ff4e12ebc78945aa74154ac6260582d1db75758d
[clitk.git] / utilities / CxImage / CxImageDLL / CxImageMfcDll.cpp
1 // cximagemfcdll.cpp : Defines the initialization routines for the DLL.\r
2 //\r
3 \r
4 #include "stdafx.h"\r
5 #include "cximagemfcdll.h"\r
6 \r
7 #ifdef _DEBUG\r
8 #define new DEBUG_NEW\r
9 #undef THIS_FILE\r
10 static char THIS_FILE[] = __FILE__;\r
11 #endif\r
12 \r
13 //\r
14 //      Note!\r
15 //\r
16 //              If this DLL is dynamically linked against the MFC\r
17 //              DLLs, any functions exported from this DLL which\r
18 //              call into MFC must have the AFX_MANAGE_STATE macro\r
19 //              added at the very beginning of the function.\r
20 //\r
21 //              For example:\r
22 //\r
23 //              extern "C" BOOL PASCAL EXPORT ExportedFunction()\r
24 //              {\r
25 //                      AFX_MANAGE_STATE(AfxGetStaticModuleState());\r
26 //                      // normal function body here\r
27 //              }\r
28 //\r
29 //              It is very important that this macro appear in each\r
30 //              function, prior to any calls into MFC.  This means that\r
31 //              it must appear as the first statement within the \r
32 //              function, even before any object variable declarations\r
33 //              as their constructors may generate calls into the MFC\r
34 //              DLL.\r
35 //\r
36 //              Please see MFC Technical Notes 33 and 58 for additional\r
37 //              details.\r
38 //\r
39 \r
40 /////////////////////////////////////////////////////////////////////////////\r
41 // CcximagemfcdllApp\r
42 \r
43 BEGIN_MESSAGE_MAP(CcximagemfcdllApp, CWinApp)\r
44         //{{AFX_MSG_MAP(CcximagemfcdllApp)\r
45                 // NOTE - the ClassWizard will add and remove mapping macros here.\r
46                 //    DO NOT EDIT what you see in these blocks of generated code!\r
47         //}}AFX_MSG_MAP\r
48 END_MESSAGE_MAP()\r
49 \r
50 /////////////////////////////////////////////////////////////////////////////\r
51 // CcximagemfcdllApp construction\r
52 \r
53 CcximagemfcdllApp::CcximagemfcdllApp()\r
54 {\r
55         // TODO: add construction code here,\r
56         // Place all significant initialization in InitInstance\r
57 }\r
58 \r
59 /////////////////////////////////////////////////////////////////////////////\r
60 // The one and only CcximagemfcdllApp object\r
61 \r
62 CcximagemfcdllApp theApp;\r