1、stdafx.h修改版本:
#pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN #endif #ifndef WINVER #define WINVER 0x0501 #endif #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif #ifndef _WIN32_WINDOWS #define _WIN32_WINDOWS 0x0410 #endif #ifndef _WIN32_IE #define _WIN32_IE 0x0500 #endif
2、修改項目屬性
如果沒有多字節,需要安裝VS2013多字節支持,VS2013默認不支持多字節。
鏈接器命令行中增加“/SAFESEH:NO”: