Ingbert Grimpe wrote:

Another question on this topic:

I have 'some kind' of shared lib and want to register functions for notification callbacks. I thought, that I pass sysNotifyNoDatabaseID and the function's address when registering. But what do I do on Unregister? Unregister takes a LocalID again, but since I have no 'app', I have no ID and probably unregistering for sysNotifyNoDatabaseID will probably fail?
Could I pass a 'dummy' LocalID to SysNotifyRegister, or do I pass the LocalID of the 'owner app' (the app that currently uses the library) of my lib?



Let me guess, you pass the same value as you registered with. The system will probably have an array with registered notifications and will put the procedure address in it, when you use sysNotifyNoDatabaseID. So, if you use the same value again for unregister, the system will find it and remove it.


Regards
Henk

--
-------------------------------------------------------------------------
  Henk Jonas
  Palm OS � certified developer

  [EMAIL PROTECTED]                                   www.metaviewsoft.de
-------------------------------------------------------------------------

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

Reply via email to