×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    20

    Launching an Application and parameters

    Hello all !

    I´m launching an application from another using this code:
    (it works fine)
    Code:
    void CBSView1::LaunchApplication(const TDesC& aApp) // Launch Extern Application (.App)
    	{
    	CApaCommandLine* cmd=CApaCommandLine::NewL();        
    	cmd->SetLibraryNameL(aApp);        
    	cmd->SetCommandL(EApaCommandRun);
    	cmd->SetDocumentNameL(_L("BS")); // Flag (or Parameter...)
    	EikDll::StartAppL(*cmd);
    	delete cmd;
    	cmd = NULL;
    	}
    But I´d like to know how to get the flag "BS" in the application I´ve just launched...

    Thanx for your help !

    Valentin

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    Take a peek to SDK and this method:
    public: virtual TBool ProcessCommandParametersL(TApaCommand aCommand,TFileName& aDocumentName,const TDesC8& aTail);

    Implement that in your CEikAppUi derived class.

    And in your launcher application you can use
    StartDocument method provided by RApaLsSession.

    Br V

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    9

    Using EikDll

    I want to know the include header file and the library name that needs to be addded in mmp file in order to use EikDll:: functions.

    Thanks for your help
    nayani

  4. #4
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    Surprisingly, the header is eikdll.h. The library is eikcore.lib. But do notice that EikDll is deprecated and you should really use RApaLsSession instead.

    Lauri

Posting Permissions

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