help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I conver a char[x] to std::wstring


From: Thomas Maeder
Subject: Re: How can I conver a char[x] to std::wstring
Date: Thu, 06 Oct 2005 22:39:36 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

"jalkadir" <jalkadir@gosonic.ca> writes:

> How can I conver a char[x] to std::wstring, for intance
> time_t Time_t;
> std::wstring Date;
> time( &Time_t );
> Date = ctime( &Time_t );
>
> or
> strd::string wstr;
> str = __FILE__;
>
> Isn't the conversion done automatically?

No. What encoding should wstr and Date have?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]