Re: CString + unicode

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You should investigate the T2A macro. And ;you should contact your third-party vendor
about the availability of Unicode support, because in the real world this library is going
to be an abject failure when you suddenly move to a locale that requires Unicode.
joe
On 13 Aug 2006 21:11:23 -0700, "markww" <markww@xxxxxxxxx> wrote:

Hi,

Ok I have compiled my application with unicode character set. So I have
a bunch of CStrings which I am assuming now are all wide character
representations since I set my project to use unicode encoding.

I have a 3rd party library which takes arguments like this:

bool DoSomething(const char *pszArgument);

And I have an argument like:

CString strPath = _T("something awesome");

How could I pass that through? Am I in big trouble? What if this is
supposed to go on a japanese windows installation? That will probably
not work then yeah?

Thanks!
Mark
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Where can you find shortcut codes for symbols like a dash?
    ... Wingdings 3 came to mind before I completely processed the fact that the OP ... What you're using is a character from the Unicode character set. ... you need a font which is Unicode capable (not ...
    (microsoft.public.word.docmanagement)
  • Re: How do I get rid of C4005 warning!!!
    ... warning C4005: 'UNICODE': macro redefinition ... Seriously, though, if you have your project settings set to "Use Unicode Character Set" then _UNICODE and UNICODE should be defined on the compiler command line. ...
    (microsoft.public.vstudio.development)
  • Re: specific UTF-8 locales
    ... > support. ... > Do you know what does a UTF-8 locale for a particular language provide ... > Japanese characters or it contains complete Unicode character set codes ...
    (comp.unix.questions)
  • static library and unicode
    ... defined "Use Unicode Character Set" thus both _UNICODE and UNICODE ... macro are defined. ... TCHAR it leads to winnt.h "typedef char TCHAR, ...
    (microsoft.public.vc.language)
  • Re: Microsoft Layer for Unicode on Windows 95/98/Me systems
    ... Yes,>some<, but no upper case to lower case conversion etc. StrConvis ... and Unicode support is installed on the OS. ... Microsoft Office 97 on the target system that installs Fm20.dll as part of ...
    (microsoft.public.vb.winapi)