I have encountered a problem when I was upgrading a class and need to import an external library.
For example, I am editing a class called CFoo
, which has a public method SendMessage()
.
It works fine until I need to include a library - which contains a macro also named SendMessage()
. It causes a complete mess to my current code because all part containing SendMessage()
is being replaced by the macro.
I have found a similar question about macro naming collision: How do I avoid name collision with macros defined in Windows header files?
However in my case the public method name can't be changed as it is already released and used in other projects.
Is there a way not to use or include a specific macro, or to specify whether a macro or a method should be used when a function is called?
Thank you very much.