摘要: 1.Cstring转intint count;CString str="1";count= _wtoi(str);//还有其他方法atoi, _atoi_l, _wtoi, _wtoi_l 阅读全文
posted @ 2013-07-17 13:18 偶不是大叔 阅读(2920) 评论(0) 推荐(0) 编辑
摘要: 1.首先.ini文件的编码形式必须是Unicode,可通过文件另存为修改;2.获取配置文件路径(注:我是放在.exe执行文件的根目录下的)CString sPath; CString StrName;StrName="dasdasda";GetModuleFileName(NULL,sPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH); sPath.ReleaseBuffer(); //到这一步获取的是执行文件(.exe)的路径 int nPos; nPos=sPath.ReverseFind('\\'); sPath 阅读全文
posted @ 2013-07-17 12:54 偶不是大叔 阅读(3172) 评论(0) 推荐(0) 编辑