Hi Andrew,

Can you verify that the text has been pulled out properly (ie, isolate a
form field problem vs. Serial problem).

Frank Ableson

----- Original Message -----
From: Andrew Lathrop <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 4:23 PM
Subject: Problem with SerSend


> I'm using the following code snippet to send data over the serial port.
It
> came from Bachmann's Palm Programming book.  The compiled PRC that come
> withe the book works fne, but when i use the code from the book, it
doesn't
> work.  Instead of printing out the same thing that is in the field, i only
> get the first letter.  I am using the palm in the cradle, and am sending
the
> data to HyperTerminal.  Any suggestions?  Thanks
> Andrew
>    // get message from our field
>    wIDField = FrmGetObjectIndex(formP,MainMessageField);
>    pCtlField = (FieldPtr) FrmGetObjectPtr(formP,wIDField);
>    hText = FldGetTextHandle (pCtlField);
>    pText = (CharPtr) MemHandleLock(hText);
>
>
>    // let's send our message!
>    SerSend(SerialRefNum,(unsigned char *) pText,StrLen( pText ),&e);
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


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