Problem with AppUi()

Login to reply to this topic.
Wed, 2006-09-06 19:02
Joined: 2006-09-01
Forum posts: 2
Hi,
I have a problem with this method. Write the part of code:

this->parent=(CguiAppUi*)this->AppUi();

CguiAppUi parent is Pointer to the main app ui class.
And this is the code for serie 60 where is include aknview.h.
in the s80 a view has a control, in fact is include coecntrl.h.
i have resolve this problem with this code:

   CreateWindowL(); // create an edwin for editing the script text
   this->env=new (ELeave) CCoeEnv;
   this->parent=(CguiAppUi*)env->AppUi();
   this->guides=guides;

is it correct or not?
  • Login to reply to this topic.