如何把CString str1的内容传给unsigned char str2[]?Keywords:cstring unsigned char memcpy(str2, (LPCTSTR)str1, str1.GetLength()); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 unsigned char *p1;CString str1="12345";p1 = new .....strcpy((char *)p1,str1); st2 = (LPCTSTR)str1 行吗? 一个是char* 一个是const char* 在私有成员里有一个m_pchData的成员,要想怎么干,随便你了 直接使用lstrcpy( str2, // destination buffer str1// string);如何好使吗? For Example:CString str1;unsigned char str2[];memcpy(str2,str2.GetBuff(str2.Getlength()),str2.GetLength()); memcpy(str2,str1.GetBuff(str1.GetLength()),str1.GetLength()); 怎样同时显示界面与任务栏? 对话框中的Static Text的字体怎么改变颜色? vc使用libxml库问题 COM本质论(特快) 喜得贵子,请帮忙取个名字,出生日期:2005-1-30 请各位高手赐教,在ICMP的checksum计算算法中,为什么要用检验和不用其他的??? the problem about Date Time Picker control 请问如何得到选定磁盘目录的名称?CFileDialog好象必须制定文件才行。 关于CWndSplitter的问题 Re:VC位图旋转问题后续分数5 各位关于创建目录的问题! 正式开学C++感觉好爽哦
CString str1="12345";
p1 = new .....strcpy((char *)p1,str1);
lstrcpy(
str2, // destination buffer
str1// string
);
如何好使吗?
CString str1;
unsigned char str2[];
memcpy(str2,str2.GetBuff(str2.Getlength()),str2.GetLength());