Mark A. Peters <[EMAIL PROTECTED]> wrote in message
news:13155@palm-dev-forum...
>
> 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.
>

That's basically it, except you don't have to use a resource db.  A record
db works fine.

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

Yes.

> 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?
>

It takes care of everything for you.

If your .pdb is larger than 64K (less ~30bytes) you can't use
DmCreateDatabaseFromImage() since you can't store the source data in a
single chunk.  You would need to use the Exchange Manager instead.

--Stephen




-- 
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