Re: How to LPCTSTR Convert to char *
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 06 Dec 2006 13:12:20 -0500
It depends on what you mean by the question.
An LPCTSTR is a const TCHAR *, so do you mean you want to remove the const attribute, or
you really want a 'char *' data type (remember that char and char* represent an obsolete
technology that should be used only in very rare and exotic situations where you are
absolutely guarnteed because of external specs to be using 8-bit characters, and should
never be coded as a matter of course in any program).
If you really want a 'char *', that is, a pointer to an 8-bit character string, then you
have to explain why you need it and how you plan to handle the down-conversion from
Unicode characters that have no 8-bit equivalents.
joe
On Tue, 5 Dec 2006 20:20:31 -0600, rxgmoral <rxgmoral.2idl9p@xxxxxxxxxxxxxxxxxxxxx> wrote:
Joseph M. Newcomer [MVP]
How to LPCTSTR Convert to char *
thank :)
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: How to LPCTSTR Convert to char *
- From: r norman
- Re: How to LPCTSTR Convert to char *
- References:
- How to LPCTSTR Convert to char *
- From: rxgmoral
- How to LPCTSTR Convert to char *
- Prev by Date: Re: ASyncSock
- Next by Date: Re: It's that time again...newbie thread question
- Previous by thread: Re: How to LPCTSTR Convert to char *
- Next by thread: Re: How to LPCTSTR Convert to char *
- Index(es):
Relevant Pages
|
Loading