In article <102355@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> > Regardless of whether it is a good idea or not, I was wondering if
> > you have actually gotten this "leave the DB open" hack to work?
> 
> Yes.
> 
> > I tried implementing it and still no icon in the Command Bar.
> >
> > I verified that the DB exists, is a resource DB, is open, and
> > contains the Tbmp resource with ID that I expect it to have.  What
> > more can I do?  Does the DB need to be of a particular 'type' for
> > the resource to be found?
> 
> DmCreateDatabase(cardNo, "RSCDBNAME", CREATOR_ID, 'Rsrc', true), to create
> the DB.
> DmOpenDatabase, to open it.
> DmGetResource + MemHandleSize + DmNewResource + DmWrite + DmReleaseResource,
> to copy the bitmap resource from my app DB to the new DB (I don't detail the
> usual lock/unlock stuff).
> 
> That's it.
> 
> Then, I open and the DB on first notification, and leave it open. And it
> works.
> 
> -- Denis Faivre - [EMAIL PROTECTED]
> -- Ablivio - http://www.ablivio.com


Thanks very much.  I was trying to create/open the DB when getting the 
sysAppLaunchCmdSystemReset (i.e. when registering for the 
notifications).  For some reason this does not work well. 
Creating/opening when receiving the notification seems to work fine.

Thanks again,
Paul




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to