-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstdafx.h
More file actions
162 lines (126 loc) · 4.11 KB
/
stdafx.h
File metadata and controls
162 lines (126 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// stdafx.h : 标准系统包含文件的包含文件,
// 或是经常使用但不常更改的
// 特定于项目的包含文件
//
#pragma once
#include "targetver.h"
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#define _SINGLE_THREAD_CHECK
#define WIN32_LEAN_AND_MEAN // 从 Windows 头中排除极少使用的资料
// Windows 头文件:
#include <windows.h>
#include <shellapi.h>
#include <mmsystem.h>
//#define NOMINMAX
#define _WTYPES_NS
#pragma warning( push )
#pragma warning( disable: 4302 ) //eg. warning C4302: “类型转换”: 从“LPCTSTR”到“WORD”截断
#pragma warning( disable: 4838 ) //eg. warning C4838: 从“int”转换到“UINT”需要收缩转换
#pragma warning( disable: 4800 ) //eg. warning C4800: “BOOL”: 将值强制为布尔值“true”或“false”(性能警告)
#pragma warning( disable: 4091 ) //eg. warning C4091: “typedef ”: 没有声明变量时忽略“tagGPFIDL_FLAGS”的左侧
#pragma warning( disable: 4996 ) //eg. warning C4996: 'strcpy': This function or variable may be unsafe
// C 运行时头文件
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <time.h>
// STL
#include <string>
#include <vector>
#include <list>
#include <map>
#include <deque>
#include <algorithm>
using namespace std;
// ATL && WTL
#include <atlbase.h>
#include <atlapp.h>
#include <atlcom.h>
#include <atlhost.h>
#include <atlwin.h>
#include <atlctl.h>
#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>
#include <atlstr.h>
#include <atltypes.h>
#include <atlcrack.h>
#include <atlxml.h>
#include <atltime.h>
using namespace ATL;
extern CAppModule _Module;
#include <gdiplus.h> //将GDI+头文件加入到工程中
#pragma comment(lib, "gdiplus.lib") //将GDI+的lib文件加入到工程中
using namespace Gdiplus;
#include <openssl\sha.h>
// extern "C"
// {
// #pragma warning(disable:4996)
// #include <openssl\sha.h>
// }
//#pragma comment(lib, "libssl32MDd.lib")
// 3rdparty
#include <uilib.h>
using namespace DuiLib;
//// include
#include "Utils.h"
#include "Singleton.h"
#include "commondef.h"
#include "ACCef/ACCef.h"
//pro include
#include "Common.h"
// bulid
#include <version.h>
// project
#include "Resource.h"
#include "SACModule.h"
#include "Base64.h"
#include "MD5.h"
//#include "Common.h"
#include "CosDef.h"
#include "CosAuthSign.h"
#include "fileHelper.h"
#include "IniHelper.h"
#include "PathHelper.h"
#include "RectHelper.h"
//baseclass
#include "Log.h"
#include "LogBase.h"
#include "CommandParse.h"
#include "TaskThreadBase.h"
#include "JsonParse.h"
#include "urlencode.h"
//project
#include "TimeMgr.h"
#include "LoginWindow.h"
#include "MessageUserdefine.h"
#include "LoginUserDataMgr.h"
#include "Mainframe.h"
#include "CefWndWrapManager.h"
#include "HelpWebWindow.h"
#include "UIListItemCust.h"
//有些窗口自带关闭按钮,自身窗口关闭的同时会触发OnFinalMessage,有的在消息中delete this,释放了内存,有的没有
//对于没有delete this的,要在这里delete
#define SAFE_RELEASE_WND(pWnd, deleteThis) if(pWnd)\
{\
if (::IsWindow(*pWnd))\
::DestroyWindow(*pWnd);\
if(deleteThis) delete pWnd;\
pWnd=NULL;\
}
extern CSACModule g_SACMoudleApp;
string readFileIntoString(const char * filename);
#define App_Name L"微剪助手"
#if defined _M_IX86
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
// TODO: 在此处引用程序需要的其他头文件