On Fri, Feb 11, 2000 at 09:31:37AM -0800, [EMAIL PROTECTED] wrote:
> 
> 
> > With the os 3.5 rom my applications are not retaining
> > their category settings after they are exited.  For example, if app
> > X is in category 'Utilties', after it is run it will be placed in
> > the 'Unfiled' category.
> 
> Does your application modify itself in any way?
> Specifically, it appears that calling DmSetDatabaseInfo on an application
> database may cause its category to be lost in the Launcher.  I haven't looked
> into it very deeply at this point, but I wanted to get back to you quickly.  If
> this is the case, then it is a bug since this should not cause the category to
> be lost... I'm not sure how it slipped in, but unfortunately, its a bit late to
> fix it for 3.5.

> Can you email me a copy of your app and directions on how to reproduce the bug?
> (Do I just have to run it, or activate some particular functionality from within
> your app?)
> We can at least get this one nailed ASAP...

     Yes, actually, I found that setting "no beam" on the app will
cause the behavior.  Removing the function fixes it.  I will also
email you a copy of an app that does it.  Thanks.

--frank

/*
 * I believe this is from the knowledge base, but I could be wrong
 */

void set_no_beam (void)
{
#ifndef dmHdrAttrCopyPrevention
#define dmHdrAttrCopyPrevention         0x0040
#endif

        UInt16 cardNo;
        LocalID dbID;
        UInt16 attributes;

        SysCurAppDatabase (&cardNo, &dbID);

        if (dbID) {
                // get the current attributes, turn on prot, then 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);
        }
}


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to