65,210
社区成员
发帖
与我相关
我的任务
分享wstring CLuaProgramNode::GetLuaNodeString( int iId, wstring sValue)
{
wstring str;
int iPropertyId = iId;
wstring sPropertyValue = sValue;
if (sPropertyValue != "") // error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'std::wstring' (or there is no acceptable conversion)
{
wsprintf(str, L"{%d/%s}", iPropertyId, sPropertyValue); //error C2664: 'wsprintfW' : cannot convert parameter 1 from 'std::wstring' to 'LPWSTR'
}
return str;
}