Re: Unicode setting question



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:

Hi

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
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... I find myself using strlen when it is needed, and not otherwise, on strings ... > compiler would generate a loop), ... And yet you have been programming for many years, it seems, and have still ... Efficiency, readability, and correctness are /all/ important. ...
    (comp.programming)
  • Re: Is Procedural Paradigm a basis of OO Paradigm?
    ... Or functional, or logical programming, etc. ... strings, ... classic construction that shows their equivalence 'cheats' by creating ... statements and claiming that the if statement is fixed....no adding ...
    (comp.object)
  • Re: Why is it dangerous?
    ... fingerd's special nature is that it used an auto buffer ... count to indexto deal with unterminated strings. ... which Paul proudly allows the programmer to ... Learning a new programming language ...
    (comp.lang.c)
  • Re: dh, the daemon helper
    ... having such strings was one of the worst programming ideas ever, plus, ... NULL) strings, is that they are inefficient with some forms of data ... That char at a time iteration can be costly, ... bytes or more at once using substantially fewer instructions. ...
    (comp.unix.programmer)
  • Re: Is Procedural Paradigm a basis of OO Paradigm?
    ... Or functional, or logical programming, etc. ... "or more complex depending on what hat you've got on"..... ... strings, ... classic construction that shows their equivalence 'cheats' by creating ...
    (comp.object)

Loading