--- siddharth saxena wrote: > i have to use database for data storage and it gives > me a problem .actually, i wanna store data in a > database permanently.but after i quit my application > and reinvoke it i lose all my data. > <snip> > Char *textp; > <snip> > textp=FldGetTextPtr(fldp); > len=FldGetTextLength(fldp); > streamsave=FileOpen(0,filename,filetype,filecreator,fileModeUpdate,errp); > ErrAlert(*errp); > FileWrite(streamsave,textp,sizeof(textp),1,NULL);
textp is a pointer. So sizeof(textp) is probably 4. How long is the string you are trying to save? So, you aren't saving the data. No wonder it isn't there when you look for it later! <snip> __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
