c++
Recently I (Matt) was asked to write up a proof of concept on how to program in
UNICODE.
I took two different approaches. One was using LOCALES which is
not the suggested approach and the second is using resource dlls. The
resource dll approach is well documented but because the LOCALE approach was
not the desired approach, there is only a quick blurb on it.
Below you will find a document explaining the steps as well as the source code, step by
step, so you can follow along. The resource DLL approach is divided up into
3 zip files (step1, step2 and final) and the LOCALE approach is complete
within the Unicode zip file.
Downloads:
A Step by Step Guide to Programming in Multiple Languages (VC++) -
MS Word doc, 80k
Step 1.zip - Winzip file, 22k
Step 2.zip - Winzip file, 7.6M
Final.zip - Winzip file, 14M
Unicode.zip - Winzip file, 4.02M
Looking at recent searches, I have found that a lot of people have been searching
on an easy way to apply the _T macro to their existing strings. Asside from writing
an application to handle this for you, your next best bet is to use regular expressions
with the replace dialog in MSVC. I suggest that you do not blindly replace all but
use find next instead. In the Find What edit box type \(\"[^\"]*\"\) and
in the Replace With edit box type _T(\1). Do not forget to check off the
Regular expression check box. Please see the diagram below which shows what your
Replace dialog should look like.