MFC does not support WINVER less than 0x0501

后端 未结 3 464
盖世英雄少女心
盖世英雄少女心 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条回答
  •  有刺的猬
    2021-02-04 04:53

    All MFC apps define the WINVER macro value somewhere if you didn't define it yourself. I assume MS has removed the definition by default on its own header files and is now making mandatory that you explicitly define it.

    So, to solve your problem, either put the #define in your 'preprocessor' compiler options, or at the top of your precompiled header (ie stdafx.h).

    Note 0x501 is Windows XP support. 0x600 is Vista, 0x601 is Windows 7 — and how sad am I for remembering that!

提交回复
热议问题