Hai here is my code so can u help me.
it will give open data base alert but dont launch the data base
i use the search function with the button click on the form.
Here the toda.dll is the name of my application file from which i want to 
launch the todo application. 


static void search(void)
{
                DmOpenRef dbP; 
                UInt32    result;
                //UInt32 resultP;
                LocalID dbID;
                Err err;
                ExampleStructType *inputData = (ExampleStructType *)MemPtrNew  
sizeof(ExampleStructType));
if (inputData)
  {
   inputData->number1 = 2;
   inputData->number2 = 5;
   result = PceNativeResourceCall(
   'STRT',                     // ARMC is a good
   0x1000, 
   "toda.dll\0PNOMain", // default dll path is the location of PalmSim.exe
inputData);
dbID = DmFindDatabase (0,toDoDBName);
if(!dbID) FrmAlert(ToDoListEmptyAlert);   
dbP = DmOpenDatabaseByTypeCreator 'DATA',sysFileCToDo,dmModeReadWrite);
if(dbP) FrmAlert(ToDoListOkAlert);                
err= SysAppLaunch (0, dbID, 0,sysAppLaunchCmdNormalLaunch,NULL, &result); 
if(err)
 {
FrmAlert(CloseDBAlert); 
DmCloseDatabase(dbP);
 }
MemPtrFree(inputData);
 }

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

Reply via email to