如何把一个字符转换 如何把一个字符串或一个二进制字串转换为:由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); CEditView打造记事本遇到的问题 vc 下如何将字符串(包含汉字)转换成16进制 菜鸟级问题 edit控件显示数字问题 如何Hook以随机数为类名的窗口? 高难度的问题,请教 急。。。急:如何通过API函数,在系统进程中得到当前登录用户的用户名???? CAsyncSocket Create的问题 ListCtrl如何动态改变字体的问题? 新装的系统老是死机!!!那是怎么回事? 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讲的这个呢?