The result is the same for Int32. As for "UInt16 DmFindResourceType(...)", it returns a valid index when the resource is found. So UInt is ok and people would really use a UInt. However it returns -1 when the resource is not found.
For some functions, they return NULL when error and the error code can be obtained by DmGetLastErr(). There are some functions that return error via a variable address passed as parameter. So far, three different err returning mechanisms are in data manager. Any design considerations when these specific API functions are designed? Max --- Peter Epstein <[EMAIL PROTECTED]> wrote: > C is full of dangerous pitfalls. The idea of assigning a value of -1 to an > unsigned variable would seem quite silly in many other programming > languages, but not in C. Carefully choose the type for every variable, and > watch out for loops that count down to zero using an unsigned index > variable. > -- > Peter Epstein > > -- > 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/
