Pass the data to be sent to the creating exe as aCommand in the API,
TInt Create(const TDesC &aFileName, const TDesC &aCommand, TOwnerType aType=EOwnerProcess);
In the created exe, it will come as command line arguments, that can be read using CCommandLineArguments.
If you are using PIPS, u can also read the same arguments argc and argv fashio too.
Forum posts: 121
Hi Sanjay,
Pass the data to be sent to the creating exe as aCommand in the API,
TInt Create(const TDesC &aFileName, const TDesC &aCommand, TOwnerType aType=EOwnerProcess);
In the created exe, it will come as command line arguments, that can be read using CCommandLineArguments.
If you are using PIPS, u can also read the same arguments argc and argv fashio too.
Jupitar
Forum posts: 148
RApaLsSession appSession;
User::LeaveIfError(appSession.Connect());
CleanupClosePushL(appSession);
TUid uid;
uid.iUid = XXXXXXXXX ;//UID of your application
TApaAppInfo appInfo;
appSession.GetAppInfo(appInfo, uid);
CApaCommandLine* commandLine = CApaCommandLine::NewL();
CleanupStack::PushL(commandLine);
commandLine->SetExecutableNameL(appInfo.iFullName);
commandLine->SetTailEndL(aBuf); //parameter
appSession.StartApp(*commandLine);
CleanupStack::PopAndDestroy(2);
Hope it helps.
Forum posts: 79
Thanks,thank u very much