Discussion Board

Results 1 to 2 of 2
  1. #1
    Hi,

    is there method to launch Symbian exe with arguments from another program???

    THANKS...

    pliss give me related refference or some example code...

    Thanks to reply

  2. #2
    Regular Contributor yavolinsky's Avatar
    Join Date
    Aug 2005
    Posts
    79
    Code:
    _LIT(KYourAppFullPath, "c:\\system\\apps\\yourapp\\yourapp.app");
    _LIT(KYourAppParameters, "yourparam");
    
    RFs fs;
    User::LeaveIfError(fs.Connect());
    CleanupClosePushL(fs);
    TFindFile findFile(fs);
    User::LeaveIfError(findFile.FindByDir(KYourAppFullPath,KNullDesC));
    
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);
    CApaCommandLine *cmd = CApaCommandLine::NewLC();
    cmd->SetLibraryNameL(findFile.File());
    cmd->SetTailEndL(KYourAppParameters);
    cmd->SetCommandL(EApaCommandRun);
    User::LeaveIfError(ls.StartApp(*cmd));
    
    CleanupStack::PopAndDestroy(3); // cmd, ls, fs

Similar Threads

  1. How to launch a program for non symbian files?
    By hotcheese in forum Symbian C++
    Replies: 2
    Last Post: 2004-09-23, 04:14
  2. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian C++
    Replies: 0
    Last Post: 2004-05-21, 11:16
  3. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian C++
    Replies: 2
    Last Post: 2004-05-08, 09:09
  4. Replies: 0
    Last Post: 2004-03-30, 00:13
  5. Q: Is it permission to use UDP communication in EXE program?
    By akom in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2004-03-23, 22:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved