73 lines
2.3 KiB
C++
73 lines
2.3 KiB
C++
#pragma once
|
|
|
|
#ifndef VC_EXTRALEAN
|
|
#define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
|
|
#endif
|
|
|
|
#ifndef WINVER // 指定要求的最低平台是 Windows Vista。
|
|
#define WINVER 0x0600 // 将此值更改为相应的值,以适用于 Windows 的其他版本。
|
|
#endif
|
|
|
|
#ifndef _WIN32_WINNT // 指定要求的最低平台是 Windows Vista。
|
|
#define _WIN32_WINNT 0x0600 // 将此值更改为相应的值,以适用于 Windows 的其他版本。
|
|
#endif
|
|
|
|
#ifndef _WIN32_WINDOWS // 指定要求的最低平台是 Windows 98。
|
|
#define _WIN32_WINDOWS 0x0410 // 将此值更改为适当的值,以适用于 Windows Me 或更高版本。
|
|
#endif
|
|
|
|
#ifndef _WIN32_IE // 指定要求的最低平台是 Internet Explorer 7.0。
|
|
#define _WIN32_IE 0x0700 // 将此值更改为相应的值,以适用于 IE 的其他版本。
|
|
#endif
|
|
|
|
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将为显式的
|
|
|
|
#include <afxwin.h> // MFC core and standard components
|
|
#include <afxext.h> // MFC extensions
|
|
#include <afxdisp.h> // MFC OLE automation classes
|
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
|
#include <afxcmn.h> // MFC support for Windows Common Controls
|
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
|
|
#include <afxsock.h> // MFC socket extensions
|
|
#include <afxmt.h>
|
|
#include <Wininet.h>
|
|
#include <atlbase.h>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
CString URLDecode(LPCTSTR lpszURL);
|
|
void SaveLog(LPCTSTR pstrFormat, ...);
|
|
string UnEscape(char* p_unicode_escape_chars);
|
|
|
|
#include <comdef.h>
|
|
#include <afxpriv.h>
|
|
|
|
//平台定义
|
|
#include "..\..\全局定义\Platform.h"
|
|
#include "..\..\消息定义\CMD_Correspond.h"
|
|
|
|
#include "../内核引擎/KernelEngineHead.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
//链接代码
|
|
|
|
#ifndef _DEBUG
|
|
#ifndef _UNICODE
|
|
#pragma comment (lib,"../../链接库/Ansi/ServiceCore.lib")
|
|
#pragma comment (lib,"../../链接库/Ansi/KernelEngine.lib")
|
|
#else
|
|
#pragma comment (lib,"../../链接库/Unicode/ServiceCore.lib")
|
|
#pragma comment (lib,"../../链接库/Unicode/KernelEngine.lib")
|
|
#endif
|
|
#else
|
|
#ifndef _UNICODE
|
|
#pragma comment (lib,"../../链接库/Ansi/ServiceCoreD.lib")
|
|
#pragma comment (lib,"../../链接库/Ansi/KernelEngineD.lib")
|
|
#else
|
|
#pragma comment (lib,"../../链接库/Unicode/ServiceCoreD.lib")
|
|
#pragma comment (lib,"../../链接库/Unicode/KernelEngineD.lib")
|
|
#endif
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|