Lemme look at your code again...
> skelSRWorkDBType* x = (CatDBType*) MemHandleLock(theRecord);
> ...
> s.description = x->Name;
> ...
> err = BeamBytes(&s, x, MemHandleSize(theRecord));
> ...
> static Err BeamBytes(ExgSocketPtr s, void *buffer, UInt32 bytesToSend) {
> ...
What is CatDBType? It's pretty clear from the s.desc line that it's a
struct. In the call to BeamBytes, you're treating x as a pointer to
arbitrary data. Since you're sending this data to Memo Pad, you should be
sending either plain text or MIME-encoded text. (The latter is used for
sending categories of memos.) I'm guessing that the first byte in the
structure pointed to by x is zero, so it's being treated as an empty string
by Memo Pad. Perhaps you should change the call to BeamBytes, something like
this:
err = BeamBytes(&s, x->Foo, MemHandleSize(theRecord));
where Foo is a field that contains the contents of the record that should
appear in the memo.
-
Danny
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/