C++编译错误总结
时间:2014-03-15 13:49:35
收藏:0
阅读:539
不能将参数 2 从“const char *”转换为“LPCTSTR”
将char*转换为CString可以解决问题
const char *string; CString strTmp;//或CString strTmp(string);strTmp.Format(_T("%s"),string); strTmp = string;
(LPCTSTR lp = (LPCTSTR)s;// LPCTSTR lp = (LPCTSTR)m;))//这句可以不写,LPCTSTR可以和CString隐式转换?
原文:http://www.cnblogs.com/onwayo/p/3600784.html
评论(0)