Does anyone know why this code snippet (from the DrMccoy application
example) changes my applications category to "unfiled", in the
launcher, no matter what the user has set it to?
Is there a better way to programmatically prevent my app from being
beamed? I don't want to use the compiler setting, as this is version
specific for my app and I keep my version switches in #define's.
>SysCurAppDatabase(&cardNo, &dbID);
>
> if (dbID) {
> // get the current attributes, turn on protection,
>and save them.
> 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);
> }
--
------------------------------------------------------------------------------
Michael Hutchens PregCalc, Ranson, FloChart
[EMAIL PROTECTED] http://www.thenar.com
Please quote previous correspondence when discussing technical support issues.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/