如何将 一个CString 赋值跟 char* Name [100] 如何将 一个CString 赋值跟 char* Name [100] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CString str;strcpy(Name[0],str); error C2664: 'strcpy' : cannot convert parameter 2 from 'class CString' to 'const char *' CString str;strcpy(Name[0],str.GetBuffer(str.GetLength())); char Name[100];CString strTemp;strTemp.Format("*****");memcpy(Name,strTemp,strTemp.GetLength()); CStringA str;strcpy(Name[0],str);不会有问题,要用CStringA,而不是CString CString str="";Name[0]=str.GetBuffer(100); 请教一个坐标点的问题 汉王眼车牌识别控件这几个函数怎么用??高分 抖动算法 想实现一个类似winrar的界面,请给个思路 简单的ShowWindow(SW_HIDE) 怎样去除应用程序标题中的文档名称? 用ADO读取ACCESS数据库中单精度型字段的问题 关于成组框内的单选按钮和其按钮控件的操作问题...大虾指点!!! Microsoft Web 浏览器 是FLAT的, 怎么才可以有3d效果.[50分] VS2010 运行MFC程序就停止工作。 为什么DEBUG模式时编译可以通过,但是运行没有反应呢? 关于进程结束 传送消息的问题
strcpy(Name[0],str);
strcpy(Name[0],str.GetBuffer(str.GetLength()));
strTemp.Format("*****");
memcpy(Name,strTemp,strTemp.GetLength());
strcpy(Name[0],str);不会有问题,要用CStringA,而不是CString
Name[0]=str.GetBuffer(100);