"Michael Wasson" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> With the Pocket PC, it is easy to copy any file on the device to a PC
> using
> Microsoft ActiveSync.
>
> How do you copy a file from a Palm device to a PC?  I know HotSync will
> backup the file to the PC if the backup bit is set but do you need to
> buy a
> program to set the backup bit on a file?
>


Here is the function that I use:

void SetDatabaseBackupBit(Char *strpDbName)
 {
 LocalID lidDbId;
 UInt16 uintAttributes;

 lidDbId = DmFindDatabase(0,strpDbName);
 if (lidDbId)
  {

DmDatabaseInfo(0,lidDbId,NULL,&uintAttributes,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL);
  if ((uintAttributes&dmHdrAttrBackup)==0)
   {
   uintAttributes|=dmHdrAttrBackup;

DmSetDatabaseInfo(0,lidDbId,NULL,&uintAttributes,NULL,NULL,NULL,NULL,NULL,NU
LL,NULL,NULL,NULL);
   }
  }
 }

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

Reply via email to