×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    86

    help! illegal use of abstract class?

    symbian newbie here..

    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);
    }
    }

    Any help would be greatly appreciated. Thanks!

  2. #2
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    86
    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*/)

    sorry for the ignorance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×