Cstring转char、string、int等数据类型的方法
摘要:
CString 转char *CString cstr;char *p = (LPSTR)(LPCTSTR)cstr;string 转 CString CString.format(”%s”, string.c_str());char 转 CString CString.format(”%s”, char*);char 转 string string s(char *);string 转 char * char *p = string.c_str();CString 转 string string s(CString.GetBuffer());1,string -> CStri... 阅读全文
posted @ 2012-05-08 16:55 lzm风雨无阻 阅读(1382) 评论(0) 推荐(0) 编辑