如何把一个字符转换 如何把一个字符串或一个二进制字串转换为:由0到9,A到Z这些字符表示 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CString strText(_T("Hello,World")); CString strMsg(_T("")); for(int i=0; i<strText.GetLength(); i++) { CString strTmp; strTmp.Format(_T("0x%x "), strText.GetAt(i)); strMsg += strTmp; } AfxMessageBox(strMsg);this??? [font=Courier New][size=3]CString strText(_T("Hello,World"));CString strMsg(_T(""));for (int i = 0; i < strText.GetLength(); i++){ CString strTmp; strTmp.Format(_T("0x%x "), strText.GetAt(i)); strMsg += strTmp;}AfxMessageBox(strMsg);[/size][/font]是不是LS讲的这个呢? strotol比如: CString strTemp = "0x22ff";WORD wTemp = strtol(strTemp, NULL, 16); MFC做数据库界面,用什么控件显示表最合适? 从程序员转成美工,请各位前辈指点 【VC】单文档,基类选的是CFormView,怎样加背景图片?请高手指教 莫名其妙...出现的错误 使用DAO为什么会出错? 关于GDI+ DrawString输出文字,中英文混合,字符串间距变化的问题 组件中的中文显示 MFC 中 CSocket接收数据包时,如果服务器连续放送两个包,CSocket->Receive 仅收到最后一个包,如何解决 哪里错了? 怎么在NT/2K/XP下直接读写硬盘任意扇区?DeviceIOControl似乎不行。 ATL源码可以修改吗? ActiveX WebBroser
CString strMsg(_T(""));
for(int i=0; i<strText.GetLength(); i++)
{
CString strTmp;
strTmp.Format(_T("0x%x "), strText.GetAt(i));
strMsg += strTmp;
}
AfxMessageBox(strMsg);
this???
CString strMsg(_T(""));
for (int i = 0; i < strText.GetLength(); i++)
{
CString strTmp;
strTmp.Format(_T("0x%x "), strText.GetAt(i));
strMsg += strTmp;
}
AfxMessageBox(strMsg);[/size][/font]是不是LS讲的这个呢?