VS2015 GdiplusTypes.h(475): error C3861: 'min': identifier not found

查了好多资料 都不管用 包括 定义宏 #define NOMINMAX

 

最直接的办法,就是在项目引用 #include <GdiPlus.h> 之前 定义 

namespace Gdiplus
{
using std::min;
using std::max;
};

问题解决

 

stack flow : https://stackoverflow.com/questions/15900381/nominmax-with-visual-studio-2012-mfc-project

posted @ 2021-03-30 14:04  HappyCoder_1  阅读(1129)  评论(0编辑  收藏  举报