I am trying to make a WinAPI C++ program however I am running into the following errors:
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
I have tried using ::AnimateWindow however I recieve the same error.
This is my header file, included before windows.h
#ifdef WINVER
#undef WINVER
#endif
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define WINVER 0x0500
#define _WIN32_WINNT 0x0500
I have also tried setting the vars to 0x0502, and commenting out the preprocessor in Winuser.h for AnimateWindow.
have figured it out.
The file in which the error was occurring was being included in my main.cpp, however it was included after windows.h in main.cpp.