Re: Multilanguage support for CEdit
- From: "Hans-J. Ude" <news@xxxxxxxxxxxx>
- Date: Sat, 17 Nov 2007 16:16:38 +0100
"Tom Serface" <tom.nospam@xxxxxxxxxxxxx> wrote
The biggest thing that stumbles me doing conversions is how CString converts the strings back and forth. So if you have something like:
CString cs = "String";
It will still compile OK, but cs won't be Unicode just because you recompile
When you write the following, pBuf is a unicode string. A memory dump shows it.
CString sc("abcd € fg");
wchar_t* pBuf = cs.GetBuffer();
(at least in my experience). I typically just do a search on all CStrings and fix them up with:
CString cs = _T("String");
But the cleanest way is to keep any visible text out of the sourcecode and do
cs.LoadString(IDS_XYZ);
BTW, doing a unicode conversion is a good chance to clean up the house.
Hans
.
- Follow-Ups:
- Re: Multilanguage support for CEdit
- From: Tom Serface
- Re: Multilanguage support for CEdit
- From: David Webber
- Re: Multilanguage support for CEdit
- References:
- Multilanguage support for CEdit
- From: Justin_Fang
- Re: Multilanguage support for CEdit
- From: Matrixinline
- Re: Multilanguage support for CEdit
- From: Justin_Fang
- Re: Multilanguage support for CEdit
- From: Joseph M . Newcomer
- Re: Multilanguage support for CEdit
- From: David Lowndes
- Re: Multilanguage support for CEdit
- From: Tom Serface
- Multilanguage support for CEdit
- Prev by Date: Re: Multilanguage support for CEdit
- Next by Date: Re: Multilanguage support for CEdit
- Previous by thread: Re: Multilanguage support for CEdit
- Next by thread: Re: Multilanguage support for CEdit
- Index(es):
Relevant Pages
|