Ben Combee wrote:

> On Jan 25, 2008 9:23 PM, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> > In some cases, POSE returns a message that "StringMgr.c,
> > Line:833, Sign extended character passed to StrChr".
> >
> > Is my WChar casting wrong? Or do I really have to use an
> > intermediate value :(
> >
> > Char *string1, Char *string2;
>
> > if ( StrChr( string2, ( WChar ) ( unsigned char ) string1[ i ] )
> > == NULL )

> The code in StrChr raises that error when a value > 0xFF80 gets
> passed to it.  However, when it sees this, it goes ahead and
> fixes the problem, so you shouldn't see incorrect behavior, just
> warnings.  Try removing the (WChar) part of the cast and just
> leave your value as unsigned char... you may be hitting a
> compiler bug with the multiple casts, as it seems right to me.


The problem with such warnings, even minor, is that when running POSE's 
Gremlins, they stop the event sequence.

The offending character is B0 (degree sign.) Does it become 0x00B0 or 0xFFB0 
when converted into a WChar by StrChr?


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to