Switching from Multi-Byte to Unicode character sets
- From: jc <jc@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Oct 2008 09:51:00 -0700
Hello,
This compiles OK using Multi-Byte character set,
but when I switch to Unicode I get an error.
char reply[256] = _T("olleh");
I know this will fix the error with the Unicode compile,
wchar_t reply[256] = _T("olleh");
but this causes many other conversion problems in the program.
Is there some other conversion macro that I could use instead of _T(),
instead of having to change from char to a wchar_t?
Thanks,
-JC
.
- Follow-Ups:
- Re: Switching from Multi-Byte to Unicode character sets
- From: Mark Salsbery [MVP]
- Re: Switching from Multi-Byte to Unicode character sets
- From: Giovanni Dicanio
- Re: Switching from Multi-Byte to Unicode character sets
- From: David Wilkinson
- Re: Switching from Multi-Byte to Unicode character sets
- From: Jochen Kalmbach [MVP]
- Re: Switching from Multi-Byte to Unicode character sets
- Prev by Date: Re: Bug in C++ /CLI 2005
- Next by Date: Re: Bug in C++ /CLI 2005
- Previous by thread: PCCOR_SIGNATURE from GetTypeSpecFromToken
- Next by thread: Re: Switching from Multi-Byte to Unicode character sets
- Index(es):
Relevant Pages
|