P
psy_berpunk
hey, i'm trying to write a simple program to read gif87a non-
interlaced format with a single image-descriptor ---
I am using djgpp on windows xp.
Sounds simple enough, unfortunatly data in the format is arranged
primarily in single-byte unsigned integers.
So i've been reading them in a chars and casting them as unsigned
chars into an int.
No problem there, except that:
With cin, values of 12 and 13 are skipped.
With cin, in binary mode everything reads as 0;
with fgetc, fread, and fscanf values of 13 are skipped.
as u can imagine missing data really messes things up.
How can I read this file one byte at a time without having the
functions I'm using ignore important data?
interlaced format with a single image-descriptor ---
I am using djgpp on windows xp.
Sounds simple enough, unfortunatly data in the format is arranged
primarily in single-byte unsigned integers.
So i've been reading them in a chars and casting them as unsigned
chars into an int.
No problem there, except that:
With cin, values of 12 and 13 are skipped.
With cin, in binary mode everything reads as 0;
with fgetc, fread, and fscanf values of 13 are skipped.
as u can imagine missing data really messes things up.
How can I read this file one byte at a time without having the
functions I'm using ignore important data?