On Thu, 25 Apr 2002, Prasad Brid wrote:
> I have used "DmFindDatabase(0,"Survey");" to find the dbid. But Now it
> showed the memory location as "0x8E6E0040". When I checked the dbid is
> not getting fetched. Is the syntax I have written is correct. My
> application name is "Survey".
Try SysCurAppDatabase() when you register for the notification. This is,
of course, assuming that your app is running normally when you register
(not sure if it would be correct otherwise).
Err err;
LocalID dbID;
UInt16 card;
err = SysCurAppDatabase(&card, &dbID);
if (err == 0)
{
err = SysNotifyRegister(card, dbID, ...other parameters...);
if (err != errNone)
{
/* handle error */
}
}
-----------------------------------------------------------------------
Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/
Software Developer // Gamer // Webmaster // System Administrator
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/