Re: Unicode setting question
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 29 May 2008 03:19:40 -0400
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"), and you should think, any time you write an 8-bit
string (except in some VERY RARE and VERY EXOTIC situations) "I am making a serious design
and implementation error here!"
Wanting to use obsolete programming techniques because you are too lazy to type an L. For
that matter why so many strings? 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. You are using very poor methodlogy here in several ways: using
obsolete 8-bit characters and putting language-specific strings in your source code. This
is a very, very, VERY poor excuse for writing bad code.
Learn to type L"" or _T(""). I've been doing it since at least 1996 and do not consider
it burdensome. Learn to use the STRINGTABLE. It is not good enough to write code that
merely runs; you have to write code that represents best state-of-the-art, and 8-bit
characters (except in the aforementioned rare and exotic circumstances) is right now very
far from best practice.
joe
On Wed, 28 May 2008 22:31:01 -0700, Kid <Kid@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
HiJoseph M. Newcomer [MVP]
How can I change VS2008 VC project settings if I do not want to use
UNICODE with L"string" for many functions .
Is this newsgroup the right one to ask this question ?
Thank for your teaching
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Unicode setting question
- From: Hans-J. Ude
- Re: Unicode setting question
- From: Giovanni Dicanio
- Re: Unicode setting question
- Prev by Date: Re: GDI+ Image::Save() function returns InvalidParameter
- Next by Date: Re: GDI+ Image::Save() function returns InvalidParameter
- Previous by thread: Re: Unicode setting question
- Next by thread: Re: Unicode setting question
- Index(es):
Relevant Pages
|
Loading