Wow, that was blatantly obvious. Thanks!
I wrongly assumed that an int was 8 bit signed so a UInt was an 8 bit unsigned. UInt was set for UInt16. Changed the UInt's in the code to UInt8's and it works perfectly! Thanks!!!
If UInt is UInt8, you probably don't need to cast them.
an unsigned char != unsigned char is the same as a signed char != signed char. since this is a simplified version, I may be wrong, but it looks like this if statement would work the same:
if ( *val1 != *val2 )
{
}> > MyFunction(char* val1, char* val2)
> > {
> > if(*(UInt*)Val1 != *(UInt*)Val2)
> > {
> > do something;
> > }
> > }-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
