D>CHAR* str = (CHAR*)GlobalLock(buf); D>wstring wstr = (wstring)str;
wstring wstr((wchar_t*)GlobalLock(buf));