bmp file reading

R

R.Sudharsan

hi
i wanna load a bmp file from turbo c++ coding.i tried it out as,
video memory pointer with 0xa0000000l as value.
then
i read each bit using fgetc(fptr) and put it into a pointer variable
of the structure.when i cout the bits i get a blank space only.
i then clear video mem pointer to black background and memcpy the
value in pointer variable of struct to video mem pointer.but the prg
hangs up wen i clear the video mem pointer. i use the screen of size
320 by 200.
thanks
sudharan.r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top