摘要: CString->std::string 例子:CString strMfc=“test“;std::string strStl;strStl=strMfc.GetBuffer(0);std::string->CString例子:CString strMfc;std::string strStl=“test“;strMfc=strStl.c_str(); 阅读全文
posted @ 2014-01-15 17:20 清凉一夏o0 阅读(228) 评论(0) 推荐(0) 编辑
摘要: { CString FilePathName; CFileDialog dlg(TRUE);///TRUE为OPEN对话框,FALSE为SAVE AS对话框 if(dlg.DoModal()==IDOK) FilePathName=dlg.GetPathName(); } 文件名保存在了FilePathName里,然后处理吧上面内容来自百度知道,去给amote258点个赞吧。-------------------我是分割线----------------上面只是最简单的用法,那么更复杂的用法包括指定扩展名等等。下面是CFileDialog的详解:CFileDialog类封装了Windo... 阅读全文
posted @ 2014-01-15 16:25 清凉一夏o0 阅读(2881) 评论(0) 推荐(0) 编辑