help-gplusplus
[Top][All Lists]
Advanced

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

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


From: jalkadir
Subject: How can I conver a char[x] to std::wstring
Date: 6 Oct 2005 12:24:52 -0700
User-agent: G2/0.2

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?
I am using g++ 3.3.x

TIA



reply via email to

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