Hi all,
I had kept this question earlier, i got strand'd at this problem so i kept
this again in brief;(
I hav a 320kb filestream type database on the palm.It got divided into 81
records.
I am using palm filestream api(even i used pol class's CFileStream class) to
access this file but i dont know
how to parse through these 81 records and get the file data thru filestream
api.I suppose if i say i fileread() i shud get the whole data.But its only
showing some 644 bytes as the filesize.!!!
Further to store the 320kb data i created a dynamic storage using the
MemPtrNew,but it is crashing out.I added the code snippet below.
char* in_buffer=(char*)MemPtrNew(330000);(//Crashing out???)
FileHand fileHandle=FileOpen(0,"PlayBmp",0,0,fileModeReadOnly,&err);
FileTell(fileHandle,&fileSize,&err);
sprintf(message,"FileSize using FileTell= %d.\n",(int)fileSize);
FrmCustomAlert(TEMP_ALERT,message,"","");
while(!FileEOF(fileHandle))
{
read = FileRead( fileHandle,in_buffer, sizeof(char),1, NULL );
//read = FileRead( fileHandle,in_buffer, sizeof(char),4096, NULL
);
in_buffer++;
count+=read;
}
It wud be very much of help for me if anybdy can suggest how i can access
these multiple records(81 records in no) and access the data using the
filestream api.I searched the earlier mails/documents but i cudnot get a
proper hint regarding this problem.
Thanx
Anil
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/