what's the proper way to convert wchar[] to string?

Ali Çehreli acehreli at yahoo.com
Wed Jan 3 18:59:39 UTC 2018


On 01/03/2018 10:50 AM, Marc wrote:
> when calling winapi functions, usually you to deal with the result in 
> wchar[]. How do I convert it to string in D to be usable by the 
> application? does D have a native for this?

std.conv has to and text:

     auto s0 = w.text;
     auto s1 = w.to!string;

Ali


More information about the Digitalmars-d-learn mailing list