While searching for how to convert a data of type HWND
to LPCWSTR
I found this sample:
std::wostringstream ss;
ss << std::hex << hWnd;
std::wstring wstr = ss.str();
LPCWSTR title = wstr.c_str();
However title
is storing the data as: 00000000005D0512
How i could get it in this format: 0x5D0512
?