- 博客(1)
- 收藏
- 关注
原创 CString、string、lpstr之间的互转
(1)CString转换为string CString cs(_T("cs")); string s; s = (LPCSTR)(CStringA)(cs); (2)string转换为CString string s ="Hello World!中国"; CString cs(s.c_str()); (3)string转换为LPWSTR ///string ---to-----LPWSTR wstring widstr; std:string s("DanTeng");
2021-08-10 13:37:02
724
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅