This page was last modified 13:04, 8 December 2007.
How to run EXE from other application in 3rd Edition
From Forum Nokia Wiki
The code below shows starting an exe from other application.
A handle to a process.
RProcess server;
Starts a new process, loading the specified executable.
server.Create(KServerName, KNullDesC);
Create an empty command line object.
CApaCommandLine* ApacommandLine = CApaCommandLine::NewL();
Sets the executable name from the specified descriptor
ApacommandLine->SetExecutableNameL(KExecutableName);
Important : Assigns a command line to a process (EKA2 only).
This replaces the EKA1 method which involved retrieving the
full command line ( using CApaCommandLine::FullCommandLine() ) and
passing it to the process (or thread on the emulator).
ApacommandLine->SetProcessEnvironmentL(server); RApaLsSession Session; Session.Connect(); Session.StartApp(*ApacommandLine); Session.Close(); delete ApacommandLine;
Related Links
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie: create icon for my application | karypid | General Symbian C++ | 1 | 2007-08-31 06:00 |
| Have you know netmonitor(FTD)? | RC211V | Symbian Networking & Messaging | 1 | 2006-12-12 14:05 |
| 用vc6能不能开发3rd程序? | s603rd | Symbian | 13 | 2006-10-11 10:54 |
| client/server 3rd edition | algiz | General Symbian C++ | 2 | 2006-06-14 11:31 |
| Application on startup | silviuccia | General Symbian C++ | 12 | 2007-04-27 08:58 |
