I am using unicode character set(Generic requirement is too use unicode only). I wnat to somehow place the contents of TCHAr array into a std::string obj, so that I can use the functions of this obj. My code snippet is as follows:
TCHAR arr[256];
std::wstring w_str;
std::string s_str;
w_str(arr); ---> Error 1
s_str(w_str.begin,w_str.end); ---> Error 2.
Error 1 : I am gettin the error C2064: "Term does not evaluate to a function taking 1 parameter.
Error 2: I am gettin the error C2064: "Term does not evaluate to a function taking 2 parameter.
Can anyone kindly help me in this; let me know how to assign contents of a TCHAR (using unicode char set), to a string object.