|
From: Per W. <pw...@ia...> - 2004-04-22 17:15:22
|
Actually a lot simpler. No need to go through an extra constructor.
std::wstring one = L"my string";
/Per W
On Thu, 22 Apr 2004, A. Klingenstein wrote:
> Maya wrote:
> > Hey folks!
> > A few questions about wide character format. First, are 'wchar' and
> > 'wstring' the C++ version of unicode?
> > Second, 'std::wstring one, two, three; one = two = three = "";' gives me
> > the following error: invalid conversion from `const char*' to `wchar_t'
>
> std::wstring one = std::wstring ("");
>
> Alex
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|