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/

Reply via email to