On Mon, 20 Nov 2000 19:46:44 -0600, "Richard Burmeister" <[EMAIL PROTECTED]>
wrote: 

> 
>From: "Deveau, Darrin" <[EMAIL PROTECTED]> 
>Subject: Displaying serial data to screen 
> 
>>    CharPtr sA, sX, cStatus, sBytes, sBuffer; 
>    ... 
>>    StrIToA(sBytes, (int)ulBytes); 
> 

>This won't work.  You didn't allocate space for the string, so writing >to
sBytes will over-right adjacent vars. 
> 

I can allocate memory to sBytes fine. 

If I allocate memory to sX(the character I want to draw) and then try  to
receive data, I get a fatal eception.  Removing the memory allocation and I
get garbage characters being recieved.  I don't see why this is happening.

>Also, don't you have to convert all the stuff you receive from
little->endian to big-endian (or vice-versa)? 
> 

I do not know exactly what you mean by converting all the stuff you receive
from little-endian to big-endian (or vice-versa).

Thanks,
Darrin

  

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