How do I convert a LPVOID (void*) to string?

Nieto neto.ribeiro at email.com
Sun Oct 22 03:44:58 UTC 2017


Thanks for all answers guys.

> If you're using this solely for Windows error messages, the 
> std.windows.syserror module has a function, sysErrorString, 
> which wraps it up for you. It also provides a WindowsException 
> you can throw which, given an Windows error code, will contain 
> a formatted system error message.
>
> https://dlang.org/phobos/std_windows_syserror.html

Yep, I was using solely for Windows error messages. In fact, I 
was trying to reinvent the wheel of wenforce(). Thanks for point 
out this. I should have asked if there was a native function for 
this rather go on and write one myself...



More information about the Digitalmars-d-learn mailing list