初学vc,望多赐教!
解决方案 »
- tinyxml 的网络应用问题
- 取得BITMAPINFO以后
- 如何做好两个分割窗口的通信
- 由0开始学VC.怎么选择书籍.先看啥再看啥,什么书补C基础...已经熟了滴大虾进来发表一下意见:)
- 怎么用CSocket发送图片?
- 声援-foo
- 在一个模式对话框的类中,设置另一个对话框的指针变量,一定要设成protected,如果设成public则出错! 而且设置成protected后,再在构造函
- 急问,如何调出应用程序的Html帮助程序?
- 怎么通过USB摄像头来判断图片移动的距离?
- 真无聊啊!无法理解的事情,关于ATL,送分!
- 那位大哥对邮件比较熟悉?帮我解释一下下面这些东西好吗?
- 如何得到ActiveX控件宿主的CWinApp指针?
CString strHex;//Simple while loop to read every 255 bytes from file.
while (0 < (nBytesRead = pFile->Read(pBuffer, 255)))
{
for (int nIndex = 0; nIndex < nByteRead; nIndex++)
{
if (nIndex == 0)
strHex.Format(_T("%2.2X"), pBuffer[nIndex]);
else if (nIndex % 16 == 0)
strHex.Format(_T("\r\n%2.2X"), pBuffer[nIndex]);
else if (nIndex % 8 == 0 )
strHex.Format(_T("-%2.2X"),pBuffer[nIndex]);
else
strHex.Format(_T(" %2.2X"), pBuffer[nIndex]); m_strFileContents += strHex;
}
}pFile -> Close();
delete pFile;然后把使用SetWindowsText把m_strFileContents传给EditView就可以了