UC Browser

Tuesday, 4 November 2014

Convert String to LPWSTR C++

C++ Code:

wstring stringToWstring(const string &inputString)
{
// Make room for characters
std::wstring destinationString(inputString.length(), L' ');

// Copy string to wstring.
std::copy(inputString.begin(), inputString.end(), destinationString.begin());
return destinationString;
}


If you have any issues with the information provided, feel free to mail me at manigandasuresh@gmail.com

1 comment: