我正在尝试制作WinAPI C ++程序但是我遇到了以下错误:
error: 'AW_SHOW' was not declared in this scope
error: 'AW_HIDE' was not declared in this scope
error: 'AW_BLEND' was not declared in this scope
error: 'AnimateWindow' was not declared in this scope
error: 'SW_MINIMISE' was not declared in this scope
我尝试过使用:: AnimateWindow然而我收到同样的错误。 这是我的头文件,包含在windows.h之前
#ifdef WINVER
#undef WINVER
#endif
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define WINVER 0x0500
#define _WIN32_WINNT 0x0500
我还尝试将vars设置为0x0502,并在Winuser.h中为AnimateWindow注释掉预处理器。
答案 0 :(得分:0)
已经弄清楚了。
发生错误的文件包含在我的main.cpp中,但它包含在main.cpp中的windows.h之后。