AppCore
Loading...
Searching...
No Matches
stdafx.h
Go to the documentation of this file.
1// stdafx.h : include file for standard system include files,
2// or project specific include files that are used frequently, but
3// are changed infrequently
4
5#ifndef __LINUX__
6
7#pragma once
8
9// NOTE - this is value is not strongly correlated to the Windows CE OS version being targeted
10#ifdef __WINDOWS_CE__
11 #define WINVER _WIN32_WCE
12#else
13 #define WINVER 0x0400
14#endif
15
16#ifndef VC_EXTRALEAN
17 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
18#endif
19
20#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
21
22#ifdef _CE_DCOM
23 #define _ATL_APARTMENT_THREADED
24#endif
25
26#ifdef __WINDOWS_CE__
27 #include <ceconfig.h>
28#endif
29
30#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
31#define SHELL_AYGSHELL
32#endif
33
34#include <afxwin.h> // MFC core and standard components
35#include <afxext.h> // MFC extensions
36
37//#ifndef _AFX_NO_OLE_SUPPORT
38// #include <afxole.h> // MFC OLE classes
39// #include <afxodlgs.h> // MFC OLE dialog classes
40// #include <afxdisp.h> // MFC Automation classes
41//#endif // _AFX_NO_OLE_SUPPORT
42
43//#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
44//#ifndef _AFX_NO_AFXCMN_SUPPORT
45//#include <afxcmn.h> // MFC support for Windows Common Controls
46//#endif // _AFX_NO_AFXCMN_SUPPORT
47
48
49#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
50#ifndef _DEVICE_RESOLUTION_AWARE
51#define _DEVICE_RESOLUTION_AWARE
52#endif
53#endif
54
55#ifdef _DEVICE_RESOLUTION_AWARE
56#include "DeviceResolutionAware.h"
57#endif
58
59
60#if (_WIN32_WCE < 0x500) && ( defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) )
61 #pragma comment(lib, "ccrtrtti.lib")
62 #ifdef _X86_
63 #if defined(_DEBUG)
64 #pragma comment(lib, "libcmtx86d.lib")
65 #else
66 #pragma comment(lib, "libcmtx86.lib")
67 #endif
68 #endif
69#endif
70
71#ifdef __GNUC__
72 #define DEPRECATED(func) func __attribute__ ((deprecated))
73#elif defined(_MSC_VER)
74 #define DEPRECATED(func) __declspec(deprecated) func
75#else
76 #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
77 #define DEPRECATED(func) func
78#endif
79
80
81#ifdef __WINDOWS_CE__
82 #include <altcecrt.h>
83#endif
84
85#endif