Read-only archive of the All About Symbian forum (2001–2013) · About this archive

How use StartViewFinderDirectL in ecam?

0 replies · 2,253 views · Started 13 May 2005

Hi.

I trying to use StartViewFinderDirectL but don't know how to get the parameters needed (RWsSession, CWsScreenDevice and RWindowBase).

Currently, I'm trying to get them like this (but it doesn't work):

RWsSession wsSession;
wsSession.Connect();
CWsScreenDevice* wsScreen = new(ELeave) CWsScreenDevice(wsSession);
wsScreen->Construct();
RWindowGroup wsWindowGroup = RWindowGroup(wsSession);
wsWindowGroup.Construct((TUint32)this);
RWindow aWindow = RWindow(wsSession);
aWindow.Construct(wsWindowGroup, (TUint32)this); <--- crash here!
aWindow.Activate();

Any tips of what's wrong?

Thanks in advance!