Re: Are _T() and TEXT() macros equivalent?
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 14 Apr 2007 15:50:53 GMT
"Mihai N." <nmihai_year_2000@xxxxxxxxx> wrote in message
news:Xns991223EABEAMihaiN@xxxxxxxxxxxxxxxx
To say that it is FUNDAMENTAL to the
language that sizeof(char) == 1?
When something is part of the standard, is used (as an implicit
assumption)
by every single application developed in that language for the last 30
years,
and every single such application will break if this changes, then yes,
it is fundamental.
Err, no. HelloWorld.cpp does not make use of the fact that sizeof(char) ==
1. That's my point. Many modern apps are Unicode native and wouldn't make
this assumption either.
Well yes. If I know a file is not saved in Unicode, of course we need
special routines to read it and convert it, but what has that got to do
with whether a native "char" is 1 byte or 2 bytes?
It has. You will need another data type for "characters that are not
Unicode"
to read such a file.
Yes, but what of it? Use another data type to read the file, then convert
it to Unicode strings for internal use.
-- David
.
- Follow-Ups:
- Re: Are _T() and TEXT() macros equivalent?
- From: Doug Harrison [MVP]
- Re: Are _T() and TEXT() macros equivalent?
- From: Mihai N.
- Re: Are _T() and TEXT() macros equivalent?
- References:
- Re: Are _T() and TEXT() macros equivalent?
- From: David Ching
- Re: Are _T() and TEXT() macros equivalent?
- From: Mihai N.
- Re: Are _T() and TEXT() macros equivalent?
- From: David Ching
- Re: Are _T() and TEXT() macros equivalent?
- From: Mihai N.
- Re: Are _T() and TEXT() macros equivalent?
- From: David Ching
- Re: Are _T() and TEXT() macros equivalent?
- From: Joseph M . Newcomer
- Re: Are _T() and TEXT() macros equivalent?
- From: Doug Harrison [MVP]
- Re: Are _T() and TEXT() macros equivalent?
- From: Joseph M . Newcomer
- Re: Are _T() and TEXT() macros equivalent?
- From: Doug Harrison [MVP]
- Re: Are _T() and TEXT() macros equivalent?
- From: Joseph M . Newcomer
- Re: Are _T() and TEXT() macros equivalent?
- From: Doug Harrison [MVP]
- Re: Are _T() and TEXT() macros equivalent?
- From: David Ching
- Re: Are _T() and TEXT() macros equivalent?
- From: Mihai N.
- Re: Are _T() and TEXT() macros equivalent?
- From: David Ching
- Re: Are _T() and TEXT() macros equivalent?
- From: Mihai N.
- Re: Are _T() and TEXT() macros equivalent?
- From: David Ching
- Re: Are _T() and TEXT() macros equivalent?
- From: Mihai N.
- Re: Are _T() and TEXT() macros equivalent?
- Prev by Date: Re: Visual C++ 6.0, Vista, Drag'n'Drop and elevation...
- Next by Date: Re: Are _T() and TEXT() macros equivalent?
- Previous by thread: Re: Are _T() and TEXT() macros equivalent?
- Next by thread: Re: Are _T() and TEXT() macros equivalent?
- Index(es):
Relevant Pages
|