How to stop an app in qt
-
hello,
I'm trying a way to close another app from my application. I've integrated Qt with symbian c++ ( I am a beginner to symbian c++) and I've followed this example here http://www.developer.nokia.com/Community/Wiki/How_to_start_and_stop_exe_using_Symbian_C++
@void Close::close()
{
TFindProcess processFinder(_L("MyApp.exe*"));
TFullName result;
RProcess processHandle;
while ( processFinder.Next(result) == KErrNone)
{
User::LeaveIfError(processHandle.Open (processFinder, EOwnerThread));
processHandle.Kill(KErrNone);
processHandle.Close();
}
}@
But it doesn't work. Can anyone help?