i created an application that has 4 views. The three views are running correctly but when i added a fourth view, it gives the error "illegal use of abstract class 'CAknView::DoActivateL(const TVwsViewId&, TUid, const TDesC8&'" What does this mean? it keeps pointing to this line:
CGameTimeView* timeView = new (ELeave) CGameTimeView;
CGameTimeView is derived from CAknView. I have already a defined DoActivateL() function in CGameTimeView. What might be wrong with my code?
// ---------- My Code for DoActivateL --------------------
void CGameTimeView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC& /*aCustomMessage*/)
{
if (!iTimeBlock)
{
iTimeBlock = new (ELeave) CGameTimeBlock;
iTimeBlock->SetMopParent(this);
iTimeBlock->ConstructL(ClientRect());
AppUi()->AddToStackL(*this, iTimeBlock);
}
}
oh, now i see.. DoActivateL should be CGameTimeView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/)
and not CGameTimeView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC& /*aCustomMessage*/)