
Originally Posted by
joteddy123
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...