int型的数据怎样转化成 CString? int aa= 12345;CString bb;bb.Format("%d",aa);...... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 本来没什么可说的了,可还是说一句,请 coffee_black (黑咖啡)不要介意啊,其实呢这样的问题你大可随便翻翻书就知道了,不过来这里也可以提醒一下另外的初学者也算一件好事! 直接用:pMsg->m_channel1 = itoa()就行了CString可对多个数据格式化单个还用:itoa(), atoi(), atof()... int -> CString int x=1000; CString temp; temp.Format("%d",x); //new temp="1000";CString -> int CString temp="10000"; int x=0; x=StrToInt(temp); //now x=1000; //Detail // Header: Declared in shlwapi.h. // Import Library: shlwapi.lib. vc 如何使用静态lib中的资源 散分题 如何自绘TABCTRL 书评 帮忙看下打印程序 请高手指教,关于完成端口问题 高手帮忙! 关于vc读取文件的问题! bool类型的转换! 在局域网上不了搜狐,怎么办? _int64转换为CString的问题! 关于vc的帮助制作 请高手看一下
CString可对多个数据格式化
单个还用:itoa(), atoi(), atof()...
CString temp;
temp.Format("%d",x);
//new temp="1000";
CString -> int
CString temp="10000";
int x=0;
x=StrToInt(temp); //now x=1000;
//Detail
// Header: Declared in shlwapi.h.
// Import Library: shlwapi.lib.