+-
c – LPWSTR字符串的连接
在Visual C中,我有一个

LPWSTR mystring;

已在代码中的其他位置定义.

我想创建一个新的LPWSTR,其中包含:

"hello " + mystring + " blablabla"        (i.e. a concatenation)

我生气这么简单(连接)!非常感谢,我迷路了!

最佳答案
C方式:

std::wstring mywstring(mystring);
std::wstring concatted_stdstr = L"hello " + mywstring + L" blah";
LPCWSTR concatted = concatted_stdstr.c_str();
点击查看更多相关文章

转载注明原文:c – LPWSTR字符串的连接 - 乐贴网