How can I convert a string (or a wstring) to a PWCHAR?
Any help?
thanks
Code:
PWCHAR temp; wstring wstr; // Basically I want to do // temp = wstr // but casting didnt work // temp = PWCHAR (wstr) // error C2440: 'type cast' : cannot convert from 'std::wstring' to 'PWCHAR'
thanks
Comment