> do I do this:
>  err = BeamBytes(&s, x, MemHandleSize(theRecord));
>
> or this:
> 
>  err = BeamBytes(&s, x->Name, MemHandleSize(theRecord));
>  err = BeamBytes(&s, x->Date, MemHandleSize(theRecord));

The answer is "yes". :) Since you're beaming to a peer, ie. the same app
running on another device, you can use any format you want. You might still
want to consider using a standard interchange format, if a suitable one
exists, but you can use any format you want. The only difference between the
two options you listed, assuming you write out the same fields in the same
order, is padding. As long as you use the same approach on both sides, the
difference is trivial.

I recommend including some kind of version number near the beginning of the
data you beam out. If you have to change the format later, this will let you
report an error when users beam from the new version to the old version.
Better this than having random gibberish appear on the receiving side. :)
-
Danny

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

Reply via email to