Scope
stdafx.h
Go to the documentation of this file.
1 
11 #pragma once
12 
15 #define WINVER 0x0601
16 #define _WIN32_WINNT 0x0601
17 #define _WIN32_IE 0x0800
18 #define _RICHEDIT_VER 0x0400
19 
22 #define WIN32_LEAN_AND_MEAN
23 
25 #ifdef UNICODE
26 #undef UNICODE
27 #endif
28 #define UNICODE
29 
31 #ifdef STRICT
32 #undef STRICT
33 #endif
34 #define STRICT
35 
37 #define NOMINMAX
38 
40 #define _USE_MATH_DEFINES
41 
43 #define _SCL_SECURE_NO_WARNINGS
44 
47 #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
48 
49 // For memory leak detection
50 //#define _CRTDBG_MAP_ALLOC
51 //#include <stdlib.h>
52 //#include <crtdbg.h>
53 
55 #define _INTSAFE_H_INCLUDED_
56 #include <stdint.h>
57 
59 #define _ATL_USE_DDX_FLOAT
60 
61 // Compensate for defining NOMINMAX above (atlframe.h complains otherwise...)
62 #include <algorithm>
63 using std::max;
64 using std::min;
65 
66 // Fundamental Windows stuff
67 #include <Windows.h>
68 #include <WindowsX.h>
69 // needed by atlctrlx.h
70 #include <ShellAPI.h>
71 
72 // for COM errors etc
73 #include <comdef.h>
74 
75 // ATL includes
76 #include <atlbase.h>
77 #include <atlwin.h>
78 #include <atltypes.h>
79 #include <atlstr.h>
80 #include <atlimage.h>
81 #include <atlcoll.h>
82 #include <WTypes.h>
83 
85 #define _WTL_NO_CSTRING
86 
88 #define _WTL_NO_WTYPES
89 
90 // WTL includes
91 #include <atlapp.h>
92 #include <atlframe.h>
93 #include <atlctrls.h>
94 #include <atldlgs.h>
95 #include <atlctrlw.h>
96 #include <atlctrlx.h>
97 #include <atlddx.h>
98 #include <atlsplit.h>
99 #include <atlcrack.h>
100 #include <atlmisc.h>
101 #include <atlconv.h>
102 
103 // Aero (Copied from the WTL samples folder)
104 #include "gui\ThirdParty\Aero.h"
105 
107 extern CAppModule _Module;
108 
109 // WIC
110 #include <wincodec.h>
111 #include <wincodecsdk.h>
112 #pragma comment(lib, "Windowscodecs.lib")
113 
114 // Some common STL stuff
115 #include <array>
116 #include <sstream>
117 #include <vector>
118 #include <map>
119 #include <numeric>
120 #include <memory>
121 #include <deque>
122 #include <functional>
123 #include <random>
124 #include <string>
125 #include <fstream>
126 #include <chrono>
127 #include <mutex>
128 #include <thread>
129 #include <atomic>
130 #include <condition_variable>
131 #include <future>
132 #include <locale>
133 #include <codecvt>
134 
135 // Common Boost stuff
136 #include <boost\signals2.hpp>
137 #include <boost\property_tree\ptree.hpp>
138 #include <boost\property_tree\xml_parser.hpp>
139 #include <boost\format.hpp>
140 
141 // Multimedia API (mostly for high accuracy multimedia timers
142 #include <MMSystem.h>
143 #pragma comment(lib, "Winmm.lib")
144 
145 // Direct2D
146 #include <d2d1.h>
147 #include <d2d1helper.h>
148 #include <dwrite.h>
149 #pragma comment(lib, "d2d1.lib")
150 #pragma comment( lib, "dwrite.lib" )
151 
152 // PSAPI (to get process information like memory consumption)
153 #include <Psapi.h>
154 #pragma comment(lib, "psapi.lib")
155 
156 // Common Controls
157 #include <CommCtrl.h>
158 #pragma comment(lib, "comctl32.lib")
159 #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
160 
161 // Some win32 string stuff
162 #include <strsafe.h>
163 
166 
170 
CAppModule _Module
The ATL application module.
Definition: scope.cpp:10