Call SetDllDirectory() in all app winmain() or app initialization methods.
[TortoiseGit.git] / src / TortoiseMerge / stdafx.h
blob092aea4f28dcf144bbf1ad501fd76f34b5f69f8a
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently,
3 // but are changed infrequently
5 #pragma once
7 #ifndef VC_EXTRALEAN
8 //#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
9 #endif
12 #include "../targetver.h"
14 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
16 // turns off MFC's hiding of some common and often safely ignored warning messages
17 #define _AFX_ALL_WARNINGS
19 #include <afxwin.h> // MFC core and standard components
20 #include <afxext.h> // MFC extensions
21 #include <afxdisp.h> // MFC Automation classes
22 #include <afxcoll.h> // MFC Collection templates and classes
23 #include <shlwapi.h> // Shell API
25 #include <afxstr.h>
27 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
28 #ifndef _AFX_NO_AFXCMN_SUPPORT
29 #include <afxcmn.h> // MFC support for Windows Common Controls
30 #endif // _AFX_NO_AFXCMN_SUPPORT
32 #include <WinSock2.h>
33 #include <Ws2tcpip.h>
34 #include <Wspiapi.h>
36 #include <afxdlgs.h>
37 #include <afxctl.h>
38 #include <afxext.h> // MFC extensions
39 #include <afxcontrolbars.h> // MFC support for ribbons and control bars
41 #ifndef LVS_EX_DOUBLEBUFFER
42 #define LVS_EX_DOUBLEBUFFER 0x00010000
43 #endif
45 #pragma warning(push)
46 #pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union (in MMSystem.h)
47 #include <vfw.h>
48 #pragma warning(pop)
50 #pragma warning(push)
51 #pragma warning(disable: 4702) // Unreachable code warnings in xtree
52 #include <string>
53 #include <map>
54 #include <vector>
55 #pragma warning(pop)
57 #define USE_GDI_GRADIENT
59 #define XMESSAGEBOX_APPREGPATH "Software\\TortoiseMerge\\"
61 #ifdef _WIN64
62 # define APP_X64_STRING "x64"
63 #else
64 # define APP_X64_STRING ""
65 #endif