> From: Matt Mason
> when the result from DmQueryNextInCategory returns a 0, I call
> DmGetLastErr() looking for ErrNone per the OS Reference.  Trouble
> is, I cant seem to find errNone.  Any clues?

DmQueryNextInCategory returns NULL if it can't find a record, so you should
really check for NULL instead of 0.

You call DmGetLastErr to find out why DmQueryNextInCategory failed.  So I
don't understand why you are looking for errNone, which would indicate there
was no failure.

If you want to know what errNone is, it is defined in ErrorBase.h as:
#define errNone 0x0000  // No error

Note that it is "errNone", not "ErrNone".


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