Sunday, January 17, 2016
EXE and APP interaction problem
Write an EXE program, with an APP interacts with the UI, mainly the EXE control APP start and stop. I want to know if EXE and APP can run concurrently on the simulator? If so, how will they interact? Using shared memory or the other what way?
Shortly SYMBIAN fourth year, the Supreme exhibitions.
Reply:
CSDN increasingly deserted.
Reply:
Waiting ING. . .
Reply:
We had a group of children use the file transfer mode to notify messages to each other. Although not a very good way.
But his close start exe app is actually very good. You can also try, should also have useful app:
RProcess p;
TInt err = p.Create (KExePath, KNullDesC);
p.Resume ();
p.Close ();
Reply:
// Traverse the system for all applications
void CAppListContainer :: GetAppInfoL (CDesCArray & amp; aArray)
{
RApaLsSession rls;
User :: LeaveIfError (rls.Connect ());
User :: LeaveIfError (rls.GetAllApps ());
_LIT (KFomatString, "\ t% s \ t% s");
TBuf & lt; 128 & gt; buf;
TApaAppInfo appInfo;
iUidArr.Reset ();
while (rls.GetNextApp (appInfo) == KErrNone)
{
iUidArr.Append (appInfo.iUid); // RArray & lt; TUid & gt; iUidArr;
buf.SetLength (0);
buf.Append ('\ t');
buf.Append (appInfo.iCaption);
buf.Append ('\ t');
buf.Append (appInfo.iUid.Name ());
aArray.AppendL (buf);
}
rls.Close ();
}
// Startup an application
void CAppListContainer :: StartupAppL (TInt aIndex)
{
RApaLsSession ras;
User :: LeaveIfError (ras.Connect ());
CleanupClosePushL (ras);
TApaAppInfo appInfo;
ras.GetAppInfo (appInfo, iUidArr [aIndex]);
CApaCommandLine * cmd = CApaCommandLine :: NewLC ();
cmd- & gt; SetLibraryNameL (appInfo.iFullName);
cmd- & gt; SetCommandL (EApaCommandRun);
ras.StartApp (* cmd);
CleanupStack :: PopAndDestroy (cmd);
CleanupStack :: Pop ();
ras.Close ();
}
You can use the End Task TApaTask :: KillTask (), just do not know there is no end of EXE effective.
Reply:
Consider using C / S mode, the Internet has many examples.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment