×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    how to remove error in hrh file while view switching

    I used a view switching code in one of the previous threads n once i used it n ran it gives an error in the hrh file.
    ========================================================================
    Name : test.hrh
    Author :
    Copyright : Your copyright notice
    Description :
    ========================================================================
    */
    enum TtestViewUids
    {
    ETestContainerViewId =1,
    ETestContainer2ViewId
    };
    The error says illegal name overloading for ETestContainerViewId =1.I dnt know how to correct this error.
    Below is my view switching code.test is the name of my project.
    TBool CtestContainerView::HandleSeeMenuItemSelectedL( TInt aCommand )
    {
    // TODO: implement selected event handler
    CEikonEnv* tEikonEnv=CEikonEnv::Static();
    ((CtestAppUi*)(tEikonEnv->EikAppUi()))->ActivateLocalViewL(TUid::Uid(ETestContainer2ViewId));
    return ETrue;
    }
    Is there nething wrong with the way i m switching?Can neone pls help me...

  2. #2
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: how to remove error in hrh file while view switching

    have you gone through Multiviews example in SDK?? If not see it.

    Regards,
    Sumit

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: how to remove error in hrh file while view switching

    no i havent gone thru tht...where wud i find such an example???wud it solve my prblm?

  4. #4
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: how to remove error in hrh file while view switching

    Quote Originally Posted by joteddy123 View Post
    no i havent gone thru tht...where wud i find such an example???wud it solve my prblm?
    This example should be present in your SDK search for it.If you would not find it tell me

    Regards,
    Sumit

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: how to remove error in hrh file while view switching

    Quote Originally Posted by joteddy123 View Post
    I used a view switching code in one of the previous threads n once i used it n ran it gives an error in the hrh file.
    ========================================================================
    Name : test.hrh
    Author :
    Copyright : Your copyright notice
    Description :
    ========================================================================
    */
    enum TtestViewUids
    {
    ETestContainerViewId =1,
    ETestContainer2ViewId
    };
    The error says illegal name overloading for ETestContainerViewId =1.I dnt know how to correct this error.
    Below is my view switching code.test is the name of my project.
    TBool CtestContainerView::HandleSeeMenuItemSelectedL( TInt aCommand )
    {
    // TODO: implement selected event handler
    CEikonEnv* tEikonEnv=CEikonEnv::Static();
    ((CtestAppUi*)(tEikonEnv->EikAppUi()))->ActivateLocalViewL(TUid::Uid(ETestContainer2ViewId));
    return ETrue;
    }
    Is there nething wrong with the way i m switching?Can neone pls help me...

    Check in your project, ETestContainerViewId might allready present in your code.

  6. #6
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: how to remove error in hrh file while view switching

    thanks everyone....my prblm got solved!

Similar Threads

  1. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. Error : Cannot find file : for DUMMIES
    By PACALA_BA in forum Symbian
    Replies: 7
    Last Post: 2008-07-06, 13:18
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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