I have a project originally compiled ANSI, it now needs to support UNICODE.
The front end is MFC and some of the backend is std C++ stl.

Currenty under ASCII compilation I have something like:

std:string val;
CString src;

val = src;

No problem.

When compile under UNICODE then have

std::wstring val
CString src

val = src;

Wont compile.

error C2679: binary '=' : no operator found which takes a right-hand operand of type 'CString' (or there is no acceptable conversion)

Can anyone help please?