I want to do an on-demand transfer of a .pdb existing on a server (a .pdb
that is otherwise suitable for installation via HotSync) to the handheld
over a TCP/IP connection.  Looking over the data manager API, it seems that
DmCreateDatabaseFromImage might be the key to doing this.  It isn't clear to
me, though, whether this will work, or how best to do it if it will.

It appears that what I should do is create a new resource database, create a
new resource within it, then resize it and write to it as data arrives from
the network.  When the whole thing has been transferred, it seems that
locking the resource handle and then passing the pointer to
DmCreateDatabaseFromImage will do what I want.

My questions are this:

Is this the right and/or best way to go about this?

If this is correct, will this technique involve a temporary use of twice the
space required for the .pdb when DmCreateDatabaseFromImage does its thing?

Does DmCreateDatabaseFromImage automatically handle whatever format changes
are required (if any) when moving from a .pdb as it exists in its "prior to
HotSync" condition on the server, and a .pdb as it must exist on the
handheld?

Thanks in advance!

Mark Peters


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to