79203976

Date: 2024-11-19 15:17:29
Score: 1
Natty:
Report link

Answer: many of the functions defined in windows.h are actually macros that resolve to some related name with a suffix. So windows.h gets very unhappy if you try to redefine its macros, but it works fine to undefined them afterward:

#include <windows.h> 
#include <mmsystem.h>
#undef GetCursor

Worked like a charm.

Reasons:
  • Blacklisted phrase (1): Worked like a charm
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Joymaker