码迷,mamicode.com
首页 > 编程语言 > 详细

VS2010 mfc CString转const char *

时间:2017-03-31 18:44:12      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:ons   led   dial   string   jpg   http   对话框   cst   对话   

很简单,一句话:

1 CFileDialog fileDlg(TRUE,NULL,NULL,0,szFilter,this);//这是一个文件打开对话框
2 const char* filename=(char *)(LPCTSTR)fileDlg.GetPathName();

技术分享

VS2010 mfc CString转const char *

标签:ons   led   dial   string   jpg   http   对话框   cst   对话   

原文地址:http://www.cnblogs.com/studylyn/p/6652824.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!