CString 转换 char
CString 转换 WCHAR
如何转换?
看看这里的介绍吧
http://computer.online.sh.cn/computer/gb/content/2002-12/06/content_477926.htm
我建议使用这种方法:
CString s(_T("This is a test "));
LPTSTR p = s.GetBuffer();
可以用CString::operator LPCTSTR
CString s(_T("This is a test "));
LPTSTR p = s.GetBuffer();
(LPCWSTR)p;
(WCHAR)p
观察+up