Réponse acceptée !
Hi,
Why is it an english thread here ?
If you try this code :
Code C/C++ :
#define TOTO 1
#define TOTO 2
#if TOTO == 1
#error My compiler is stupid
#endif
You won't have the "My compiler is stupid" error but a warning :
warning C4005: 'TOTO' : macro redefinition
Consequently:
1) The last defined value is used.
2) There is a warning if you re-define something (But you can use
#undef).
The common problem in your case is that your code looks like this:
Code C/C++ :
#include <windows.h>
define _WIN32_WINNT 0x0500
Consequently, when you include winbase, _WIN32_WINNT is not yet defined.
_WIN32_WINNT must be defined before the first include of windows.h.
Code C/C++ :
define _WIN32_WINNT 0x0500
#include <windows.h>