I made mistake on the other part of that post. :) This one...  

I guess some one may try to catch a error using a UInt32 variable accidently. 
So, -1(0xFFFF in UInt16) will be 0x0000FFFF when converted from UInt16 to
UInt32.  When the following code compares that with "-1" as suggested by the
document, there will be a problem. Because -1 in UInt32 is 0xFFFFFFFF. 
Although we should really not use different type of variable to do that, it can
be a bug.

Max
--- Danny Epstein <[EMAIL PROTECTED]> wrote:
> > "Index of resource in resource database, or -1 if not found."
> > 
> > However the return value from DmFindResourceType should be UInt16.
> 
> We use -1 like this several places in the docs. I agree that it's not a
> great thing to do, but I don't know if I'd call it a bug.
> -
> Danny
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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