Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / examples / sql / wce_sql / stdafx.h
1 /*-
2  * See the file LICENSE for redistribution information.
3  * 
4  * Copyright (c) 2012, 2012 Oracle and/or its affiliates.  All rights reserved.
5  *
6  */
7
8 // stdafx.h : include file for standard system include files,
9 // or project specific include files that are used frequently,
10 // but are changed infrequently
11
12 #pragma once
13
14 #pragma comment(linker, "/nodefaultlib:libc.lib")
15 #pragma comment(linker, "/nodefaultlib:libcd.lib")
16
17 // NOTE - this is value is not strongly correlated to the Windows CE OS version being targeted
18 #define WINVER _WIN32_WCE
19
20 #ifndef VC_EXTRALEAN
21 #define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers
22 #endif
23
24 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // some CString constructors will be explicit
25 #ifdef _CE_DCOM
26 #define _ATL_APARTMENT_THREADED
27 #endif
28
29 // turns off MFC's hiding of some common and often safely ignored warning messages
30 #define _AFX_ALL_WARNINGS
31
32 #include <ceconfig.h>
33 #if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
34 #define SHELL_AYGSHELL
35 #endif
36
37 #include <afxwin.h>         // MFC core and standard components
38 #include <afxext.h>         // MFC extensions
39
40 #ifndef _AFX_NO_OLE_SUPPORT
41 #include <afxdtctl.h>           // MFC support for Internet Explorer 4 Common Controls
42 #endif
43
44
45
46 #ifndef _AFX_NO_AFXCMN_SUPPORT
47 #include <afxcmn.h>                     // MFC support for Windows Common Controls
48 #endif // _AFX_NO_AFXCMN_SUPPORT
49
50
51
52 #if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
53 #ifndef _DEVICE_RESOLUTION_AWARE
54 #define _DEVICE_RESOLUTION_AWARE
55 #endif
56 #endif
57
58 #ifdef _DEVICE_RESOLUTION_AWARE
59 #include "DeviceResolutionAware.h"
60 #endif
61
62 #include <aygshell.h>
63 #pragma comment(lib, "aygshell.lib") 
64
65 #if (_WIN32_WCE < 0x500) && ( defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) )
66         #pragma comment(lib, "ccrtrtti.lib")
67         #ifdef _X86_    
68                 #if defined(_DEBUG)
69                         #pragma comment(lib, "libcmtx86d.lib")
70                 #else
71                         #pragma comment(lib, "libcmtx86.lib")
72                 #endif
73         #endif
74 #endif
75
76 #include <altcecrt.h>