I see. You are of course right to use _MSC_VER instead of __WINDOWS__ for the compiler-specific stuff.
However shouldn't the TEXTOUT macro use Ztring().From_ISO_8859_1() instead of Ztring().From_Local() to convert the C-string?
As far as I see, TEXTOUT is mainly used to print some hardcoded strings that look like Latin-1. The user's "local" Codepage, however, might be everything...
(I know that the ASCII characters, code 0 to 127, are identical for most Codepages. But not for all of them: e.g.
Windows-932 has no backslash!)