×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    13

    Question Launching an application in SDK 3rd edition

    My application starts an other application (CApaApplication) with the following source code

    _LIT(KViewEditAppFileName,"DIGITIZER.APP");
    CApaProcess* process=CEikonEnv::Static()->Process();
    // Add a new embedded document to the current process with the type of our viewer\editor app
    TFileName buffer = KViewEditAppFileName();
    CEikDocument* document=static_cast<CEikDocument*>(process->AddNewDocumentL(buffer));
    // Put this new document on the cleanup stack
    TApaDocCleanupItem cleanup(process, document);
    CleanupStack::PushL(cleanup); // push cleanup
    // Tell the document to initialise
    document->NewDocumentL();

    The launched application was a .app (TARGETTYPE APP in .mmp file) in the SDK 2nd edition and has been changed to an .exe (TARGETTYPE EXE in .mmp file) in the SDK 3rd edition.
    What is the way to launch the .exe application ?
    Last edited by sdalis; 2005-11-09 at 14:43.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    81

    Re: Launching an application in SDK 3rd edition

    CApaCommandLine* comndLine = CApaCommandLine::NewLC();
    comndLine ->SetExecutableNameL( aApp );// aApp is exe name in buffer
    comndLine ->SetCommandL( EApaCommandRun );
    RApaLsSession apaSession;
    apaSession.Connect();
    apaSession.StartApp( *comndLine );
    apaSession.Close();
    CleanupStack::PopAndDestroy( comndLine );

    use this code

    BR
    Sanjiv

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    190

    Re: Launching an application in SDK 3rd edition

    Ok, this works.

    But what about applications that is to open the document? My embeddable app is launched by clicking file in phone gallery, but it's closed after second with displayed error "Feature not supported (-5)".
    Last edited by mike.b; 2006-05-15 at 13:32.

Similar Threads

  1. is it possible to get application wizard for sdk 2.0 with .net 2003
    By vinayakak in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-10-13, 14:07
  2. Replies: 0
    Last Post: 2004-10-07, 09:55
  3. socket server application using Series 60 SDK
    By irohit in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-09-16, 05:27
  4. SMS Application using Nokia Series 60 MIDP Concept SDK Beta 0.2
    By danish79 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-05-06, 05:26
  5. Building a C++ application with Series 60 SDK
    By nadmeh in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-12-25, 18:25

Posting Permissions

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