evve
evve

Reputation: 2916

LPWSTR to std::string?

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?

Upvotes: 4

Views: 7236

Answers (1)

Matt Houser
Matt Houser

Reputation: 36093

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

Upvotes: 15

Related Questions