Hi,
I am extending an existing MFC app to use Unicode (for a
Japanese version of the interface elements). The app's
purpose is to control a peripheral device through the
serial port, and the device only understands ansi strings
(in fact, I synthesize a character stream and send it as
though it was typed into a terminal). The problem seems to
be that the VC++ 6 linker insists that if I use the
#define UNICODE and _UNICODE preprocessor directives and
the wWinMainCRTStartup entry point, all my calls to
ReadFile and WriteFile will happen in Unicode! In other
words, my Unicode app will always send Unicode text
through the serial port, which screws up communications
with the device. There must be a way of forcing the
Read/WriteFile functions to call their ANSI versions
instead of the Unicode ones, or line printers would go
nuts, right? How do I link Read/WriteFile to the ANSI
versions?