摘要: 正在编译...1>Ipv4IPv6traceroutesrc.cpp1>d:\研究生\c++\study\test\test\ipv4ipv6traceroutesrc.cpp(461) : warning C4267: “参数”: 从“size_t”转换到“DWORD”,可能丢失数据1>d:\研究生\c++\study\test\test\ipv4ipv6traceroutesrc.cpp(1131) : warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据1>d:\研究生\c++\study\test\test\ipv4ipv6 阅读全文
posted @ 2013-12-17 17:39 滴水瓦 阅读(4671) 评论(0) 推荐(0) 编辑
摘要: 今天在使用vs2008+MFC时候,使用editControl的replacesel(“”)发生报错。如下::不能将参数1从“const char []”转换为“LPCTSTR”其解决方案就是, 在项目属性里面找到项目默认值下面的字符集, 将其换为:使用多字节字符集就ok了。原因:typedefLPCTSTRLPTSTR ;#ifndef _UNICODE typedef TCHAR char; #else typedef TCHAR wchar_t; #endif typedef LPTSTR const TCHAR*;看到一篇很好的讲字符集(charset)转载过来。。感谢freeb... 阅读全文
posted @ 2013-12-17 15:23 滴水瓦 阅读(3634) 评论(0) 推荐(0) 编辑