×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    20

    execute one application from another

    Hi All
    Can any body tell me, How to execute one application from another. E.g. Invoking ?To Do List? from a Calendar Application. Regards Dijo
    <Dijo.xavier@sisl.co.in>

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    RE: execute one application from another

    hi there,

    Follow the following logic:
    (1) Get the Task (app/exe) you want to run.
    (2) Start that application.

    Example:
    TUid lUid;

    //Get the uid of the application to run

    //uid of prog to be launched

    lUid.iUid = KUidHelloWorld.iUid;

    //Find the task
    TApaTask lTask = lTaskList.FindApp(lUid);

    //Find its file to run
    TFindFile findFile(lEikonEnv->FsSession());

    User::LeaveIfError(findFile.FindByDir(KExampleAppFileName,
    KNullDesC));

    // Start the application
    CApaCommandLine* cmdLine=CApaCommandLine::NewLC();
    cmdLine->SetCommandL(EApaCommandRun);
    cmdLine->SetLibraryNameL(findFile.File());

    EikDll::StartAppL(*cmdLine);
    CleanupStack::Pop();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×