At 18:10 2003-2-5 -0800, you wrote:

Unlike the HostXfer example, I would like my ExgLib to register at install
time, not by launching an app.  If my assumption above is incorrect then
maybe the only way to do that is to make my ExgLib into an app and call my
Installer routine from the syncNotify entry point.
Have you looked at the code for HostXFer? In its PilotMain, you'll see the lines:

else if (cmd == sysAppLaunchCmdSyncNotify)
{
RegisterLibrary();
}
else if (cmd == sysAppLaunchCmdSystemReset)
{
RegisterLibrary(); // see note on RegisterLibrary
}

These lines react to the launch codes sent to the application right after the device has been HotSync'd to the device (sysAppLaunchCmdSyncNotify) and when the device is reset (sysAppLaunchCmdSystemReset). The user does not explicitly run the application to register it -- it registers itself under normal conditions.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com

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


Reply via email to