本文共 368 字,大约阅读时间需要 1 分钟。
VS2008下编译MFC报平台版本低错误
fatal error C1189: #error : Your version of the Windows SDK is earlier than 6.0. Try setting the 'WINVER' and '_WIN32_WINNT' definitions in your project to less than 0x0600.解决方法:
在stdafx.h头部中,#pragma once下添加:
#ifndef WINVER #define WINVER 0x0501 #endif#ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif
转载地址:http://hdwci.baihongyu.com/