It's an unfortunate side effect of #includeing . Assuming you're not actually using Windows' DrawText() anywhere in your program, it's perfectly safe to #undef it immediately after:
// wherever you #include , or any other windows header
#include
#undef DrawText