-
September 3rd, 2009, 04:59 AM
#1
How to assign CString to wstring UNICODE compilation
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?
Thanks.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|