Hi
Hope someone can help me with this...
I have 2 apps, the first is a simple HelloWorld GUI app. this works fine and runs off the icon no problem.
My second app is another GUI app but with different name and UID. When the user presses the icon for the second app i want it to open up, start the first app and then close.
here is the code i am using...
which i got from Symbian ExampleCode:RProcess server; server.Create(KServerName, KNullDesC); CApaCommandLine* commandLine = CApaCommandLine::NewL(); commandLine->SetExecutableNameL(KExecutableName); commandLine->SetProcessEnvironmentL(server); RApaLsSession ApaSession; ApaSession.Connect(); ApaSession.StartApp(*commandLine); ApaSession.Close(); delete commandLine;
I get no errors in the compiling and i can install on the device, but when i click the icon the screen flashes as if the app is starting but then returns to the main menu without starting the other app.
the executable i'm trying to launch is c:\sys\bin\HelloWorld.exe and it has a UID from the unprotected range (0xA000161C)
What values should KExecutableName, KServerName and KNullDesC be set to?
Should these be filenames/UID/something else?
I'm using Carbide.C++ Express for development.
I'm totally new to c++ so i'm really greatful for all the help i can get.
Paul

Reply With Quote

