MFC CDC::DrawText() problem

I have a GUI library that contains CDC::DrawText calls many times and, when I try to compile my application I have this message error:

error C2039: 'DrawText' : is not a member of 'CDC'

I read in an old message that I could avoid this error using DrawTextW instead of the CDC::DrawText but unfortunately (for me!) I can't modify the GUI source code.

Note: I have the same problem with
THIS definition

Is there anyone that can give me some suggestion?

Thank you in advance.

w-xingbo's picture

Use DrawTextA(...)

Stephane Routelous's picture

Try to change the include order :
first the GUI classes
then the OpenCASCADE classes
( or inverted )