iEikonEnv

Login to reply to this topic.
Fri, 2006-01-13 11:29
Joined: 2005-11-28
Forum posts: 101
hey i have maybe a stupid question but i cant resolve this ;/
im using codewarrior and i have appui and appview
in appui i can reach iEikonEnv.
But i want to use it in AppView and when i write iEikonEnv->TitleFont() for example it says undefined symbol...
shall i include something or what to see iEikonEnv in AppView

(in AppUi class there is no iEikonEnv so i guess its in some include)

Thank you
BG

Fri, 2006-01-13 12:10
Joined: 2004-07-28
Forum posts: 1379
Re: iEikonEnv
Just write:

(STATIC_CAST(CEikonEnv*,CCoeEnv::Static())->TitleFont();

iEikonEnv is defined as:

#define iEikonEnv (STATIC_CAST(CEikonEnv*,iCoeEnv))

in eikdef.h

didster

Fri, 2006-01-13 16:17
Joined: 2005-11-28
Forum posts: 101
Re: iEikonEnv
ok works fine
thank you
Mon, 2006-01-16 10:37
Joined: 2005-11-28
Forum posts: 13
Re: iEikonEnv
May be you can use this directly:

CEikonEnv::Static()->TitleFont();
Mon, 2008-03-10 14:23
Joined: 2008-03-10
Forum posts: 1
Re: iEikonEnv

As per the documentation you do not need to do any static casting just include your application header file in view. Actually iEikonEnv is a marco and this is defined in CEikApplication class.

It means that if you are including your application header file then you will get this macro.

cheers
Krishan

  • Login to reply to this topic.