Re: Unicode setting question
- From: "Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxxx>
- Date: Thu, 29 May 2008 09:57:56 +0200
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> ha scritto nel messaggio
news:8tls34thu00o4tuuhhribrkg04msg65u81@xxxxxxxxxx
And why is specifing L"string" bad? It strikes me that you should be
doing this already,
and failure to do it means you are programming in an obsolete style.
Actually, I don't
write L"string", I write _T("string"),
It would be great if the IDE had some IntelliSense feature, such that when
we just finish to type a string "...", the IDE immediately decorates that
string with L or _T() (based on some configuration option).
I would also prefer if default strings literals are assumed Unicode instead
of ANSI/MBCS (i.e. "string" == L"string"), and an explicit prefix would be
used to indicate ANSI/MBCS (i.e. @"string" or A"string"...).
But that seems to break back-compatibility and cross-platform feature of
C/C++...
Of course, a real program does not actually have any
native language strings in it; all language-specific strings are in the
STRINGTABLE, so
they can be localized.
Yes, using STRINGTABLE instead of string literals in code is a key point.
Giovanni
.
- Follow-Ups:
- Re: Unicode setting question
- From: Mihai N.
- Re: Unicode setting question
- References:
- Re: Unicode setting question
- From: Joseph M . Newcomer
- Re: Unicode setting question
- Prev by Date: Re: Reading an Excel File
- Next by Date: Re: Unicode setting question
- Previous by thread: Re: Unicode setting question
- Next by thread: Re: Unicode setting question
- Index(es):
Relevant Pages
|