I\'ve been looking around but I couldn\'t find the solution to my problem, even with some supposedly solved problems that resemble mine.
I want to hide the console w
Your
#define _WIN32_WINNT 0x0500
(which is needed to use GetConsoleWindow
- see the documentation) must be before
#include
That #define
is used by windows.h
to know which version of Windows you are targeting (and thus which declarations it has to provide/which additional fields it has to add to structures/other magic that may be related to that linker error); if you define it after you include windows.h
it will be useless.