4

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?

evve
  • 2,806
  • 2
  • 14
  • 11

1 Answers1

15

To manipulate wide character strings, use std::wstring which is a wide character string.

Matt Houser
  • 33,983
  • 6
  • 70
  • 88