1

我想在 C++(VS 2010)中将 LPCWSTR 转换为 wstring。我想在 OutputDebugStringW() 中使用它。

谢谢你。

4

1 回答 1

11

好吧,只需将 传递LPCWSTR给这样的构造函数wstring

LPCWSTR str=L"fun";
wstring str2(str);
于 2013-04-01T13:11:51.240 回答