Is there a simple way to convert a LPWSTR to std::string?
My problem: I have a filepath as an LPWSTR and I want to use the methods from the string class to manipulate the path.
Maybe another way to answer my problem: Are there alternate methods for the LPWSTR that are found in the string class?
To manipulate wide character strings, use std::wstring
which is a wide character string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With