Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 C++(VS 2010)中将 LPCWSTR 转换为 wstring。我想在 OutputDebugStringW() 中使用它。
谢谢你。
好吧,只需将 传递LPCWSTR给这样的构造函数wstring:
LPCWSTR
wstring
LPCWSTR str=L"fun"; wstring str2(str);