"Ben Combee" <[EMAIL PROTECTED]> a �crit dans le message de news:
[EMAIL PROTECTED]
> This is my "Sync if call is available" glue code that I wrote:
>
> if (SysGetTrapAddress(sysTrapDmSyncDatabase) !=
> SysGetTrapAddress(sysTrapSysUnimplemented))
> {
> error = DmSyncDatabase(pDatabase);
> }
>
>
Or at application start you check if on a NVFS device:
gbolPDAHasNVFS=false;
if (FtrGet(sysFtrCreator,sysFtrNumDmAutoBackup, &ulngValue)==errNone)
{
if (ulngValue==1)
gbolPDAHasNVFS=true;
}
and then only call DmSyncDatabase if on a NVFS device.
--
Regis St-Gelais
www.laubrass.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/