How to convert char to LPCTSTR (MFC)?

Posted by Shark on Stack Overflow See other posts from Stack Overflow or by Shark
Published on 2010-04-17T09:43:32Z Indexed on 2010/04/17 9:53 UTC
Read the original article Hit count: 127

Filed under:
|
|

Is there any way to do this? This is what I am trying to do:

char s[] = { 'a', 'b' };
label.SetWindowTextW(s[1]);

label is CStatic typed, _UNICODE is defined. Any help would be appreciated.

UPD: Tried to use CString(s[1]), it works for ASCII characters but others won't work. E. g. for the ? it returns |.

© Stack Overflow or respective owner

Related posts about mfc

Related posts about char