在MFC应用程序的TextBox中显示二进制数据

在MFC应用程序的TextBox中显示二进制数据

问题描述:

你好,
我想在MFC应用程序的文本框中显示二进制数据.我不知道该怎么做.

感谢

Hello,
I want to display binary data in text box in MFC application. I do not know how to do this.

Thanks

二进制数据的常规" 表示形式是十六进制形式,例如:
The ''usual'' representation of binary data is the hexadecimal one, for instance:
BYTE b[]= {10, 23, 51};
CString s;
s.Format(_T("%02X %02X %02X"), b[0], b[1], b[2]);



产生字符串"0A 17 33",您可以将其用作TextBox文本.



produces the string "0A 17 33" that you may use as the TextBox text.