i'm trying to open a file that containg coors of pixels but i don't know why i cant
read it..its a normal pdb with one record containig the array of pixels
i opening using:
img = FileOpen(0, ImgName ,FormataCreatorType("USER") ,FormataCreatorType("CASL") ,
fileModeReadOnly|fileModeAnyTypeCreator, &erro);
ehre img is a FileHand
and i'm reading using:
buffer = (char *)MemPtrNew(10);
FileRead(img, buffer, sizeof(char), 1, &erro);
i want to read byte by byte to get each color pixel alone...
but when i read the variable buffer don't get anything... and i get sometimes erro of
reading thing out of ram or rom... and some memory leaks
the img is geting some adress..so its openign sometjhing
when i sue de fuction to delete t file..it is deleted
so the prob is not find the file..
anyway can someone help me?
i can't open any file at all taht i used
the file is generated right
thanx
____________________________________________________________________
Adquira j� seu email gratuito da Tosko Entretenimento ! http://www.tosko.com.br
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/