Excuse me I did't have explained it as well.
My code is :
err =SrmGetStatus(pSerPort->m_PortId,0,&LineError);
and after I would like to know the value of &LineError.

Best Regards,
Helene


> --- "[EMAIL PROTECTED]" wrote:
> > I made a SrmReceiveWait and there is an error, it's serErrLineErr, I
> > read the Palm OS Reference, and it's said : "Use srmGetStatus to
> > obtain the exact line error"
> > 
> > I did that and it works but I don't kno how to see the result( I
> > can't use the debug mode), I try this : 
> > WinDrawChars((char*)LineError,20,20,60);
> > but the result is not understandable.
> > 
> 
> SrmGetStatus() is a function that returns an Err (a UInt16), so why are
> you trying to type-cast that to a (char *)?
> 
> The docs say SrmGetStatus() can return:
> - errNone if thgere is no error
> - serErrBadPort if the port doesn’t exist
> - serErrNotSupported if the port is a yielded port
> - serErrNoDevicesAvail if no serial devices could be found.
> 
> So, you should test to see which of these results you got.  For
> example,
> 
>   Err err = SrmGetStatus (portId, statusFieldP, lineErrsP);
>   if (err != errNone)
>   {
>     // which error was it?
>   }
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/
> 

____________________________________________________________
Faites un voeu et puis Voila ! www.voila.fr 
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. 
h�)ߢ���*'�{��x-��ږ`޽�h��Ţ�������칻�&ަW���zm����
Z�j,r��u����!�˩�����+�k?


Reply via email to