Compiler Errors in atlwin.h

后端 未结 2 1139
刺人心
刺人心 2021-01-15 21:44

When including atlwin.h from the Microsoft ATL libraries in Visual Studio 2013 building will result in numerous complier errors about undefined elements.

i.e.

<
2条回答
  •  温柔的废话
    2021-01-15 22:22

    CWindowImpl is defined in , so you need to include that. I don't know what the file atldwin.h that you're including is, but apparently it doesn't contain that class.

    Edit: According to a comment below by CCondron, this is due to targeting versions of Windows no longer supported by Visual C++. To fix, add:

    #define WINVER 0x0500 
    #define _WIN32_WINNT 0x0500
    

提交回复
热议问题