Re: CString to const char*
- From: "NickP" <a@xxxxx>
- Date: Wed, 27 Sep 2006 14:07:25 +0100
Hi Abdo,
IIRC, CString has no function to convert Unicode characters to ASCII ones.
However you can use mbtowc() or MultiByteToWideChar() to do the job
Excellent thanks, I shall use one of these methods.
BTW, you can use TCHAR instead of char and use your normal functions
(MessageBox instead of MessageBoxA) and avoid all the hassle...
Unfortunately I do not have control over the methods being called, i.e. the
socket functions, or are there TCHAR equivilents?
Nick.
.
- Follow-Ups:
- Re: CString to const char*
- From: Jochen Kalmbach [MVP]
- Re: CString to const char*
- References:
- CString to const char*
- From: NickP
- Re: CString to const char*
- From: Abdo Haji-Ali
- CString to const char*
- Prev by Date: Re: CString to const char*
- Next by Date: Re: Mixed assembler and C++
- Previous by thread: Re: CString to const char*
- Next by thread: Re: CString to const char*
- Index(es):
Relevant Pages
|