I have _UNICODE set in preprocessor and am linking to the ud versions of WX but for some reason I am getting an error when I try to use DrawText on the DC passed in to myPaint
The application compiles and runs up to this point that I am adding the dc.DrawText( "foo", ....
Almost like I am not linking the correct windows GDI.
The micorsoft header is detecting the _UNICODE flag in it's #ifdef and defineing DrawText to DrawTextW
Windows 10, VS2019 (generated with CMake) , latest wxWidgets.
What am I missing?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Closed #22175.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Don't include windows.h directly, use wx/msw/wrapwin.h or at least include wx/msw/winundef.h after including it. Or, better, don't include it at all -- why do you do it?
In any case, there is nothing we can do about windows.h brokenness, it remained like this for 30 years and clearly is never going to change/be fixed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()