1. undefined identifier iEikonEnv - 2006-08-14 12:42#1

    krappies

    undefined identifier iEikonEnv(转)

    Registered Userundefined identifier iEikonEnv(转)

    Join Date
    Aug 2006
    Posts
    3
    hi
    i am trying to get into symbian c++ development. i have no background whatsoever with symbian.
    i am using carbide.c++ with a nokia n91 (s60 3rd edition).
    the hello world app compile and run perfectly, but when i use iEikonEnv->TitleFont();in my program i get an error: undefined identifier iEikonEnv. this happens wherever i have iEikonEnv, not only for TitleFont();
    i have this in my AppView class.
    can anyone please shed some light on this as i can not find a solution anywhere.
    thanx

    undefined identifier iEikonEnv(转)Reply With Quote

  2. Re: undefined identifier iEikonEnv - 2006-08-14 13:44#2

    wizard_hu_

    undefined identifier iEikonEnv(转)

    Forum Nokia Championundefined identifier iEikonEnv(转)

    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    21,552
    iEikonEnv is a bit tricky: it is not a variable, it is a macro defined in eikdef.h (it is casting the existing iCoeEnv to a CEikonEnv*). Make sure it is included (and you may also need to include eikenv.h).

    undefined identifier iEikonEnv(转)Reply With Quote

  3. Re: undefined identifier iEikonEnv - 2006-08-14 14:10#3

    krappies

    undefined identifier iEikonEnv(转)

    Registered Userundefined identifier iEikonEnv(转)

    Join Date
    Aug 2006
    Posts
    3
    thanx alot
    i just have not included the two header files. my tutorial says nothing about them.
    maybe now i can FINALLY get to display my own stuff :)
    cheers

    undefined identifier iEikonEnv(转)Reply With Quote

  4. Re: undefined identifier iEikonEnv - 2009-05-21 14:07#4

    sagar_kasture

    undefined identifier iEikonEnv(转)

    Registered Userundefined identifier iEikonEnv(转)

    Join Date
    Jan 2009
    Posts
    20

    undefined identifier iEikonEnv(转) Originally Posted by wizard_hu_ undefined identifier iEikonEnv(转)

    iEikonEnv is a bit tricky: it is not a variable, it is a macro defined in eikdef.h (it is casting the existing iCoeEnv to a CEikonEnv*). Make sure it is included (and you may also need to include eikenv.h).

    even after including above 2 files im having same error. Please suggest me something.

    Sagar Kasture

    undefined identifier iEikonEnv(转)Reply With Quote

  5. Re: undefined identifier iEikonEnv - 2009-05-21 14:12#5

    kishore84

    undefined identifier iEikonEnv(转)

    Super Contributorundefined identifier iEikonEnv(转)

    Join Date
    Jul 2007
    Posts
    582

    undefined identifier iEikonEnv(转) Originally Posted by sagar_kasture undefined identifier iEikonEnv(转)

    even after including above 2 files im having same error. Please suggest me something.

    what is the error msg??

    undefined identifier iEikonEnv(转)Reply With Quote

  6. Re: undefined identifier iEikonEnv - 2009-05-22 06:11#6

    sagar_kasture

    undefined identifier iEikonEnv(转)

    Registered Userundefined identifier iEikonEnv(转)

    Join Date
    Jan 2009
    Posts
    20
    error is : undefined identifier 'iCoeEnv'
    im geting it for line
    CEPGAppUi* appUi = (CEPGAppUi*)iEikonEnv->AppUi();

    Sagar Kasture

    undefined identifier iEikonEnv(转)Reply With Quote

  7. Re: undefined identifier iEikonEnv - 2009-05-22 06:15#7

    skumar_rao

    undefined identifier iEikonEnv(转)

    Forum Nokia Championundefined identifier iEikonEnv(转)

    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,383

    undefined identifier iEikonEnv(转) undefined identifier iEikonEnv(转) undefined identifier iEikonEnv(转)

    undefined identifier iEikonEnv(转) Originally Posted by sagar_kasture undefined identifier iEikonEnv(转)

    error is : undefined identifier 'iCoeEnv'
    im geting it for line
    CEPGAppUi* appUi = (CEPGAppUi*)iEikonEnv->AppUi();

    on which class you are calling verify that you have a member variable iEikonEnv

    undefined identifier iEikonEnv(转)Reply With Quote

  8. Re: undefined identifier iEikonEnv - 2009-05-22 10:04#8

    sagar_kasture

    undefined identifier iEikonEnv(转)

    Registered Userundefined identifier iEikonEnv(转)

    Join Date
    Jan 2009
    Posts
    20
    how do i find out if the variable is member of my class. For other classes doing same is working.

    Sagar Kasture

    undefined identifier iEikonEnv(转)Reply With Quote

  9. Re: undefined identifier iEikonEnv - 2009-05-22 10:32#9

    kishore84

    undefined identifier iEikonEnv(转)

    Super Contributorundefined identifier iEikonEnv(转)

    Join Date
    Jul 2007
    Posts
    582

    undefined identifier iEikonEnv(转) Originally Posted by sagar_kasture undefined identifier iEikonEnv(转)

    error is : undefined identifier 'iCoeEnv'
    im geting it for line
    CEPGAppUi* appUi = (CEPGAppUi*)iEikonEnv->AppUi();

    Try this way rather

    Code:

    CCoeEnv::static()->AppUi()

    include apropriate headers and lib

相关文章:

  • 2022-12-23
  • 2021-09-10
  • 2021-10-05
  • 2021-04-11
  • 2021-06-05
  • 2021-10-20
  • 2021-11-11
  • 2021-12-11
猜你喜欢
  • 2022-01-07
  • 2021-05-24
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案