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 ?
Vinod K Chandran via Digitalmars-d-learn Sat, 08 May 2021 13:55:35 -0700
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 ?