Have you tried just to do
#undef GetMessage
or even
#ifdef GetMessage
#undef GetMessage
#endif
and then directly call the GetMessageA or GetMessageW windows, whichever is appropriate.
you should know if you use char * for wchar_t8 ..
(thanks don.neufeld)
Brian also says that Jus is useful information, you can also use #pragma push_macro / pop_macro to define push and pop macros. This is great if you want to override the macro definition in a code block:
#pragma push_macro("GetMessage") #undef GetMessage
I suspect this is a feature specific to MS, so keep that in mind.
Shoeleace
source share