Well to read the first element (I am not sure how large an element is) of a
file simply read the number of bytes you need out of the file.
AliR.
So, I got it working by doing this..
while(x <64096)
{
temp.Format(("%X"),(CString*)*(GloBuf+x));
OutputFile = OutputFile + temp;
OutputFile = OutputFile + " ";
x++;
}
I have another question: How do I point to the first element of a
large file? (ie 15MB up to 500MB, etc.) So I guess GloBuf would point
to the beginning of my large file.
kefkastudio
Just so you know what I'm doing, I'm reading in T1 data and storing it
to a file. After I store it to a file, I need to read the contents in
Hex. The capture can go on for days, and produce a file size somewhere
in the GB's.
AliR wrote:
That all depends on what's in GloBuf.
For the time being lets assume that you want to display each byte as a
value in the CEdit.
CString Text;
for (int i = 0; i < 64096;i++)
{
CString Temp;
Temp.Format("%02hX",GloBuf[i]);
Text += Temp;
}
m_Edit.SetWindowText(Text);
AliR.
<kefkastudio@gmail.com> wrote in message
news:1153509891.329911.79730@75g2000cwc.googlegroups.com...
So, I have this
BYTE GloBuf[64096]; which is full of data.
..then I have an edit box. How can I get my edit box to display the
contents of GloBuf in Hex?
(below) this is as far as I've gotten. I can get the first character