> error = DmGetNextDatabaseByTypeCreator( true, &searchInfo, NULL, MemoCreator, true,
>&cardNo, &dbID);
> if (!error)
> {
> error = SysUIAppSwitch( cardNo, dbID, 0, 0);
> if (error!=0)
> FrmCustomAlert(TestAlert,"pas sisuy",NULL,NULL);
> }
> else
> FrmCustomAlert(TestAlert,"pas database", NULL, NULL);
The problem is the call to DmGetNextDatabaseByTypeCreator. You pass
NULL for the type, when you really should pass sysFileTApplication. It
is likely that this call is finding the "MemoDB" that memos are stored
in instead of the MemoPad application, and trying to launch a non-app is
giving you the error message.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/