writing onto a file in c++

Hi,

I could not get the coorect values printd in the file.

unsigned char m_Image[4096];
unsigned int m_ImageSize;
BOOL s(INT8U);
s(INT8U l)
{
l = something;
}
void d(s(INT8U*m_Data.m_Image))
{
ofstream p;
p.open("c:\\imn.txt");
p.write((char*)m_Data.m_Image,m_Data.m_ImageSize);
p.close();
}

output in the file is:
D3300003B18

but when seen the values of m_Data.m_Image in watch it is
0x0012d87c "FF01100 V )R< 0AE9"

I want the contents stored in the file to be same as what i see through the watch command in vc++(FF01100 V )R< 0AE9")

What change do i need to make.. why am i getting a output like that when written onto a file.
Last edited on
Topic archived. No new replies allowed.