MFC does not support WINVER less than 0x0501

后端 未结 3 493
盖世英雄少女心
盖世英雄少女心 2021-02-04 04:26

I have a C++ project that references many other projects/libraries. This is for an application that was created many years ago. About every once a year it is updated and a new v

3条回答
  •  Happy的楠姐
    2021-02-04 04:28

    I got the same error, on Windows 7 with Visual Studio 2013.

    In my case my project had a source file with name stdafx.h, inside that file there was

    #ifndef _WIN32_WINNT
    #define _WIN32_WINNT 0x0500
    #endif
    

    I changed it to

    #ifndef _WIN32_WINNT
    #define _WIN32_WINNT 0x601
    #endif
    

    and the error disappeared.

提交回复
热议问题