convert int to wstring

    size_t myInteger = 10;
    std::wostringstream myStringStream;
    myStringStream<< L"myText" << myInteger;
    std::wstring concatenatedStr = myStringStream.str();

Conacatenating number to wstring.

In old C++ 98 Visual Studio 2010.


Are you looking for std::to_wstring

std::wstring to_wstring( int value );   (since C++11)

Converts a signed decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%d", value) would produce for sufficiently large buf.