Re: How to convert TCHAR type to standard ISO C++ string?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 1 Mar 2006 08:43:36 -0500
"Tim Roberts" <timr@xxxxxxxxx> wrote in message
news:v1ja02dh1mduqj5lpekmdr0f10mog6ihbg@xxxxxxx
"Mark Randall" <mark[__OKTHISISFAKE_]yr@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
TCHAR *is* an ISO, the difference is it changes dependant on what
_UNICODE and UNICODE defines you have.
No, it's not. It is purely a Microsoft invention, as are the
_UNICODE and UNICODE defines.
Handy, yes. Part of the ISO standard, no.
Well, Mark could perhaps have chosen a better wording, but his point is
valid. He responded to this question:
So how to convert the proprietary TCHAR type string to a
standard C++ string, so it can be used in ISO standard C/C++?
which kind of implies that TCHAR is dark magic and a program using it is
automatically not standard C++ compliant. Which is not the case of
course - while TCHAR is not specifically standardized, it is defined in
terms of ISO standard constructs.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: How to convert TCHAR type to standard ISO C++ string?
- From: Tim Roberts
- Re: How to convert TCHAR type to standard ISO C++ string?
- Prev by Date: Re: How to create a fake function argument?
- Next by Date: Re: UNICODE to MBCS
- Previous by thread: Re: How to convert TCHAR type to standard ISO C++ string?
- Next by thread: Error in VS2005
- Index(es):
Relevant Pages
|