Hi there,
>... now using an application i make a connection to the server,
> and get the pqa on my palm. i store using the FileWrite api as a .pqa
In Palm data is stores different than in PC. In Palm, a .pqa file is stored as a
resource database
with type "pqa ". You can use ExgDBRead() to store the .pqa as resource database in
Palm. You can
use the callback function to read data from the receiving buffer or from the file
stream and the
callback function to delete the old .pqa if it exists.
At first, if your .pqa is small (that dynamic allocation works), you can try to use
DmCreateDatabaseFromImage() to creat the database, something similar to this:
// open the file stream, rewind if needed...
// this is my real code, works for me...
buff = (Char *) MemPtrNew(filesize);
FileRead(fileH, buff, 1,filesize,&err);
if (!err) {
err = DmCreateDatabaseFromImage(buff);
}
MemPtrFree(buff);
Hope this helps.
tnn
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/