Is there any bettter solution to Windows wide string

Vinod K Chandran kcvinu82 at gmail.com
Sat May 8 20:50:10 UTC 2021


Hi all,
I am planning some win32 hobby projects. Now I have this function 
to tackle the LPCWSTR data type in win32.
```d
private import std.utf;
auto toWString(S)(S s) { return toUTFz!(const(wchar)*)(s); }
```
Is there any better way to do this ?


More information about the Digitalmars-d-learn mailing list