dbTalk Databases Forums  

how to support const wchar*

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss how to support const wchar* in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default how to support const wchar* - 07-15-2006 , 10:56 PM






vc7.1 mysql5.0.22 mysql++2.1.1

if compiling with _UNICODE, all string must be std:wstring & const wchar*
,but utf8trans function only trans string between different charset.

how to use const wchar* in mysql++

--
gtalk:freeespeech (AT) gmail (DOT) com

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: how to support const wchar* - 07-18-2006 , 05:25 AM






owen nirvana wrote:
Quote:
if compiling with _UNICODE, all string must be std:wstring & const wchar*
Really? How do the custom* examples work under VC++, then? They're
built with _UNICODE defined.

I don't believe there is any requirement that you must only use wide
character strings a VC++ Unicode build. You can still use narrow
strings to handle the UTF-8 strings returned by MySQL. Then you
translate those to the UCS-2 character set used by Windows NT-derived
OSes as shown in the util module from the examples. This is clearly
explained in chapter 6 in the user manual.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.