|
-
January 4th, 2011, 09:21 AM
#1
how to convert TCHAR[] to const char[]
hi all,
please tell me how to convert TCHAR[] to const char[].
thanks,
rohit negi
-
January 4th, 2011, 12:44 PM
#2
Re: how to convert TCHAR[] to const char[]
Why is this an issue? Are you trying to link with some third party lib? If so, the easiest way is to set your project to MBCS instead of unicode.
-
January 5th, 2011, 05:28 AM
#3
Re: how to convert TCHAR[] to const char[]
Is your project set to Unicode or MBCS?
-
January 5th, 2011, 09:47 AM
#4
Re: how to convert TCHAR[] to const char[]
to convert TCHAR[] to char[] there is a function WideCharToMultiByte. It depends on locale.
-
January 6th, 2011, 03:53 AM
#5
Re: how to convert TCHAR[] to const char[]
 Originally Posted by MFCQuery
there is a function WideCharToMultiByte. It depends on locale.
To use it or not, it depends on
 Originally Posted by Marc G
Is your project set to Unicode or MBCS?
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|