In article <84600@palm-dev-forum>, [EMAIL PROTECTED] says...
>
>
> I am trying the following code in Code warrior:
Which version?
> UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
> {
> Err err;
> EventType eventP;
> UInt16 cardNo;
> LocalID dbID;
> SysNotifyParamType *notify;
> DmSearchStateType sst;
> UInt32 result;
> UInt32 dwResult,currServiceID;
>
> if (cmd == sysAppLaunchCmdNormalLaunch)
> {
> SysCurAppDatabase(&cardNo, &dbID);
> SysNotifyRegister(cardNo, dbID, sysNotifyLateWakeupEvent, 0,0,0);
> err = AppStart();
> }else if (cmd == sysAppLaunchCmdNotify)
> {
> notify = (SysNotifyParamType *) cmdPBP;
> if(notify->notifyType == sysNotifyLateWakeupEvent)
> {
> err = DmGetNextDatabaseByTypeCreator(true, &sst,
> sysFileTApplication, sysFileCGeneral, true, &cardNo, &dbID);
> if (dbID)
> {
> SysUIAppSwitch(cardNo, dbID, 0, 0);
> }
> }
> }
> return 0;
> }
>
> It worked, but when I run the code, it compiled successfully but gave me
> error as "Couldn't locate the program entry point, program will not stop at
> launch". And after this POSE gives error as UIappshell (unknown version)
> just read from the memory location 0x00002CF0, which is in unallocated chunk
> of memory. And ask for continue or reset.
This error occurs if you do not generate debug information for your
source files. Make sure you've got a debug dot for all of your source
files in your project.
--
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/