I have same problem with completely different source:
Code:
// HelloWorld.cpp
#include "CommonFramework.h"
#include e32def.h
#include f32file.h
#include w32std.h // RWsSession
#include apgtask.h // TApaTask, TApaTasksList
#include eikenv.h // CEikonEnv::SetSystem()
// do the example
LOCAL_C void doExampleL()
{
_LIT(KHelloWorldText,"Killer!!\n");
console->Printf(KHelloWorldText);
// Wap Browser's constants UId
const TInt KWmlBrowserUid = 0x10008D39;
TUid id( TUid::Uid( KWmlBrowserUid ) );
TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
TApaTask task = taskList.FindApp( id );
[...]
Same happens with this "variant" (I'm experimenting with TApaTaskList to write an app which kilss foreground application):
Code:
// HelloWorld.cpp
#include "CommonFramework.h"
#include e32def.h
#include f32file.h
#include w32std.h // RWsSession
#include apgtask.h // TApaTask, TApaTasksList
#include eikenv.h // CEikonEnv::SetSystem()
// do the example
LOCAL_C void doExampleL()
{
_LIT(KHelloWorldText,"Killer!!\n");
console->Printf(KHelloWorldText);
RWsSession iWsSession;
User::LeaveIfError(iWsSession.Connect());
CleanupClosePushL(iWsSession);
TApaTaskList list(iWsSession);
TApaTask task = list.FindByPos(0); // get fopreground app
task.KillTask(); // kill it!
[...]
I'm quite new to Symbian c++, so I need some kind of "kick-start"...
Note: why doesn't the forum allow to use "<" and ">" inside CODE tags???