> From: [EMAIL PROTECTED]
> Can it also be done with prc tools?
>

Probably.  But I don't use prc-tools, so I can't tell you how.  It's
probably in the docs that come with prc-tools.
You also have two other options:

1. Use a hex editor to set the bit directly after creating the prc file.
(See the archives. Someone was just talking about this in the last day or
two.)

2. Set the bit the first time the app runs.  Here's code to do that:

  UInt cardNo;
  LocalID dbID;
  UInt attributes;

  SysCurAppDatabase(&cardNo, &dbID);
  if (dbID)
  {
    DmDatabaseInfo(cardNo, dbID, 0, &attributes, 0,0,0,0,0,0,0,0,0);
    attributes = attributes | dmHdrAttrCopyPrevention;
    DmSetDatabaseInfo(cardNo, dbID, 0, &attributes, 0,0,0,0,0,0,0,0,0);
  }


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