【发布时间】:2010-12-20 20:43:35
【问题描述】:
我有两个变量是LPCWSTRs。我想创建一个具有第一个和第二个变量值的新变量。
我试过这个,但没有用。
LPCWSTR d = L"sd";
LPCWSTR f = L"f";
LPCWSTR df = d + f;
我在尝试时收到此错误。
1 IntelliSense: expression must have integral or enum type
有没有可以合并两个LPCWSTRs的函数?
【问题讨论】:
-
据说,你希望得到的字符串是
L"sdf",有点像strcat会给你char字符串?
标签: c++ string winapi visual-c++