×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    154

    Not able to create CAknIntegerEdwin/CAknNumericEdwin

    Hi
    I have used the Wizard to create a Eikon Control application
    and in the container i am using the following code in the ConstructL function to create a numeric control.

    void CFourFebContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();
    iTelEdwin= CAknIntegerEdwin::NewL(0,101,20);
    iTelEdwin->SetContainerWindowL( *this );
    iTelEdwin->ConstructL(0,101,20);
    SetRect(aRect);
    ActivateL();
    }

    Is this the right way to create CAknIntegerEdwin control. As i get exception in ActivateL() function.

    One more thing is that whenever i try to create CAknNumericEdwin i get a linker error.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    Hi

    I Think you shouldn't call construct function there at all, since the NewL is propably calling it already.

    anyway what is the error note shown ?

    yucca

  3. #3
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    154
    Hi yucca,
    Thanx a ton. Ur suggestion worked for me. Calling NewL and
    then calling ConstructL was creating the problem. I commented the ConstructL and now its working.

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Re: Not able to create CAknIntegerEdwin/CAknNumericEdwin

    but why I use CAknIntegerEdwin like that
    ...............................
    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC(reader,R_AKNINTEDITOR_GAMEVIEW_EDWIN );
    iIntEdWin=new(ELeave)CAknIntegerEdWin;
    iIntEdWin->SetContainerWindowL(*this);
    iIntEdWin->ConstructFromResourceL(reader);
    CleanupStack::PopAndDestroy();

    ...................................
    while there the errors are all " illegal use of incomplete struct/union/class 'CAknIntegerEdWin'" but Ihad include"aknnumedwin.h"
    what can I do to get it rigth?

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Not able to create CAknIntegerEdwin/CAknNumericEdwin

    Make sure that the #include actually succeeds, preferably with <>. If you happen to use the Symbian^3 SDK, note that aknnumedwin.h might have been relocated into some sub-folder of epoc32\include, in that case put the folder in question amongst the SYSTEMINCLUDE paths.

Posting Permissions

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