Как преобразовать целое число в шестнадцатеричное std :: wstring в C ++?
То же, что и узкая строка:
#include <iomanip> #include <sstream> //... std::wostringstream oss; // note the 'w' oss << std::hex << n; return oss.str(); // type is std::wstring