On the newer Palms (Treo 650, T5, etc) DmGetLastErr isn't working as expected.

dbID = DmFindDatabase (0,DBName); // DBName doesn't exsist in this case

if(dbID)
{ // handle the exsisting db
}
else
{// FindDB failed, find out why
   Err er1 = DmGetLastErr();
   
   if(er1 == dmErrCantFind) 
   {// create
   }
}

In the code above, er1 is zero, not dmErrCantFind . According to the docs, you 
should be able to call DmGetLastErr to see why DmFindDatabase failed.  Are 
there any known issues with this?

This code works on older Palms.

TIA,
Mike

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to