1
我目前正在構建一個C++ DLL,並且我在主DLL .cpp
文件的頂部創建了這個DLL。目前正在導致警告"Warning C4005: '_WIN32_WINNT' : macro redefinition"
。我做錯了什麼?如何正確包括windows.h並將最低版本設置爲XP
我需要包括windows.h
,SDKDDKVer.h
並將最低的Windows版本設置爲XP。我如何糾正我的代碼?
// System Includes
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <d3d9.h>
// Windows Version
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#include <SDKDDKVer.h>