How to convert a LPCWSTR aka const(wchar)* to string

Mike Parker aldacron at gmail.com
Tue May 10 01:07:37 UTC 2022


On Tuesday, 10 May 2022 at 00:50:09 UTC, Vinod K Chandran wrote:

> I want to convert this `pszUserString` to a string. How to do 
> it. Thanks in advance.

```d
import std.conv : to;
string s = to!string(pszUserString);
```


More information about the Digitalmars-d-learn mailing list