Scope
stdafx.h File Reference
#include <stdint.h>
#include <algorithm>
#include <Windows.h>
#include <WindowsX.h>
#include <ShellAPI.h>
#include <comdef.h>
#include <atlbase.h>
#include <atlwin.h>
#include <atltypes.h>
#include <atlstr.h>
#include <atlimage.h>
#include <atlcoll.h>
#include <WTypes.h>
#include <atlapp.h>
#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>
#include <atlctrlw.h>
#include <atlctrlx.h>
#include <atlddx.h>
#include <atlsplit.h>
#include <atlcrack.h>
#include <atlmisc.h>
#include <atlconv.h>
#include "gui\ThirdParty\Aero.h"
#include <wincodec.h>
#include <wincodecsdk.h>
#include <array>
#include <sstream>
#include <vector>
#include <map>
#include <numeric>
#include <memory>
#include <deque>
#include <functional>
#include <random>
#include <string>
#include <fstream>
#include <chrono>
#include <mutex>
#include <thread>
#include <atomic>
#include <condition_variable>
#include <future>
#include <locale>
#include <codecvt>
#include <boost\signals2.hpp>
#include <boost\property_tree\ptree.hpp>
#include <boost\property_tree\xml_parser.hpp>
#include <boost\format.hpp>
#include <MMSystem.h>
#include <d2d1.h>
#include <d2d1helper.h>
#include <dwrite.h>
#include <Psapi.h>
#include <CommCtrl.h>
#include <strsafe.h>

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define UNICODE
 
#define STRICT
 
#define NOMINMAX
 
#define _USE_MATH_DEFINES
 
#define _SCL_SECURE_NO_WARNINGS
 
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES   1
 
#define _INTSAFE_H_INCLUDED_
 
#define _ATL_USE_DDX_FLOAT
 
#define _WTL_NO_CSTRING
 
#define _WTL_NO_WTYPES
 
Define version of various windows components. Change these values to use different versions
#define WINVER   0x0601
 
#define _WIN32_WINNT   0x0601
 
#define _WIN32_IE   0x0800
 
#define _RICHEDIT_VER   0x0400
 
Preprocessor tricks to get the SVN version number in version.h as string

/

#define STR_EXPAND(tok)   #tok
 
#define STR(tok)   STR_EXPAND(tok)
 

Variables

CAppModule _Module
 

Detailed Description

This is the include file for standard system include files, or project specific include files that are used frequently, but are changed infrequently.

Remember to include $ProjectDir in AdditionalIncludeDirectories of the compiler. Since source files are in subfolder and must have include "stdafx.h" (for the compiler to work with precompiled headers, the Intellisense parser cannot find stdafx.h since it is not in a subfolder. By including $ProjectDir the parser is happy!
Set the default floating point precision to 64 bit (instead of 53bit) by linking to FP10.OBJ in the project properties (do it there because it has to be in the linker command line before the msvcrt.lib.

Definition in file stdafx.h.

Macro Definition Documentation

#define WIN32_LEAN_AND_MEAN

Include not everything

Definition at line 22 of file stdafx.h.

#define UNICODE

Make really sure we are using Unicode.

Definition at line 28 of file stdafx.h.

#define STRICT

Make really sure we are using strict typechecking.

Definition at line 34 of file stdafx.h.

#define NOMINMAX

Why windef.h defines max and min (small letters!!!) as macros, I do not know...

But it is bullshit, so disable them

Definition at line 37 of file stdafx.h.

#define _USE_MATH_DEFINES

Use math constants.

Definition at line 40 of file stdafx.h.

#define _SCL_SECURE_NO_WARNINGS

disable compiler warning with boost

Definition at line 43 of file stdafx.h.

#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES   1

Use C++ template overloads of CRT functions.

Uses strcpy_s instead of strcpy and handles size count automagically. Does not work on temporaries

Definition at line 47 of file stdafx.h.

#define _INTSAFE_H_INCLUDED_

Avoid macro redefinition in intsafe vs stdint.

Definition at line 55 of file stdafx.h.

#define _ATL_USE_DDX_FLOAT

Also use floats for DDX.

Definition at line 59 of file stdafx.h.

#define _WTL_NO_CSTRING

Do not use WTL's CString (defined in atlmisc.h)

Definition at line 85 of file stdafx.h.

#define _WTL_NO_WTYPES

Do not use WTL's CPoint, CSize, and CRect (defined in atlmisc.h)

Definition at line 88 of file stdafx.h.

Variable Documentation

CAppModule _Module

The ATL application module.

Definition at line 10 of file scope.cpp.