swtb...@gmail.com wrote:
According to popular usage, I have been surrounding all my text in my
source code with TEXT(" ") (with UNICODE defined). I am using a
standard installation of XP with English as the default language.
I want to know what advantage do I have in my program with the above
being done when I output all error messages to users in English?
There is one other (admittedly rather minor) benefit to going with Unicode.
All of the APIs in an NT-based system actually operate natively on Unicode.
When you call an ANSI API, the ANSI string is converted on-the-fly to
Unicode, then the Unicode API is called to do the work, then any returned
result is converted back to ANSI.
So, for example, CreateFile in an ANSI build actually calls CreateFileA.
CreateFileA converts the file name to Unicode, then calls CreateFileW to do
the work.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.