Either use a tool like Insider to set it or you can use this code
void setDatabaseBackupBit() {
LocalID theDBID;
UInt theCardNum;
Word theAttrs;
Err theError;
DmSearchStateType theSearchState;
// Find out what the DB ID and Card Number of our database are
theError = DmGetNextDatabaseByTypeCreator( true, &theSearchState, < you db
type>, <your db creator>, true, &theCardNum, &theDBID );
if (!theError)
{
// Get the attributes for our database
DmDatabaseInfo(theCardNum, theDBID, NULL, &theAttrs, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
// Set the backup flag
theAttrs |= dmHdrAttrBackup;
// Set the attributes
DmSetDatabaseInfo(theCardNum, theDBID, NULL, &theAttrs, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
}
}
-----Original Message-----
From: Scott Brooks [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:08 PM
To: Palm Developer Forum
Subject: RE: getting my database into POSE
That sounds great. How do I set the backup bit?
Thanks
Scott
>If the PDB is stored on the device, set the backup bit for that pdb and you
>can get the pdb from the backup directory for the user you hotsynced
>
>-----Original Message-----
>From: Scott Brooks [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 02, 2001 2:39 PM
>To: Palm Developer Forum
>Subject: Re: getting my database into POSE
>
>
> >>I need to get my test database into the emulator for debugging, but
> >>I only have one serial port, so a null modem cable can't be used.
> >>Any suggestions?
> >
> >What format is it in and where does it reside?
>
>My test db is in a ".lis" file and resides in my palm/<user>/<programName>
>folder. The format is as follows:
>
> my seperator = "&&"
>
> records 1-3 are on the first 3 lines:
>
> item1&&item2&&item3&&item4&&item5
> item1&&item2&&item3&&item4&&item5
> item1&&item2&&item3&&item4&&item5
>
>My conduit will get it into the device but I would like to use POSE for
>debug purposes.
>
>Any help is appreciated,
>Scott
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/