×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Error: Undefined Identifier EActive

    Hello,

    I my code, I am trying to validate the state of a connection before processing a received request in MSIPConnectionObserver::IncomingRequest().

    I check whether the connection is in active state as follows:

    if(Eactive = pconnection->State())
    //do further processing

    But I get an error that the identifier EActive is not defined. In the documentation, the enum value is mentioned as part of the TState enum.
    I am including sipconnection.h in my header file.

    Any idea why this error from the compiler?

    TIA
    Vin

  2. #2
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: Error: Undefined Identifier EActive

    Quote Originally Posted by vinp View Post
    Hello,

    I my code, I am trying to validate the state of a connection before processing a received request in MSIPConnectionObserver::IncomingRequest().

    I check whether the connection is in active state as follows:

    if(Eactive = pconnection->State())
    //do further processing

    But I get an error that the identifier EActive is not defined. In the documentation, the enum value is mentioned as part of the TState enum.
    I am including sipconnection.h in my header file.

    Any idea why this error from the compiler?

    TIA
    Vin
    Just a correction. there was a typo in my previous post. The code is
    if(EActive == pconnection->State())
    //do processing

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Error: Undefined Identifier EActive

    Check whether the EActive is defined inside a class, and then add the class name before it with ::.

  4. #4
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: Error: Undefined Identifier EActive

    Quote Originally Posted by symbianyucca View Post
    Check whether the EActive is defined inside a class, and then add the class name before it with ::.
    thanks. I changed the code to CSIPConnection::EActive and that resolved it.

    thanks
    Vin

Similar Threads

  1. Error: Undefined Identifier TLitC8
    By vinp in forum Symbian
    Replies: 1
    Last Post: 2010-11-05, 08:00
  2. Error - undefined identifier atoi
    By ganeshs87 in forum Symbian
    Replies: 1
    Last Post: 2010-01-25, 06:58
  3. error: undefined identifier 'InfoMsg'
    By sundy10 in forum Symbian
    Replies: 7
    Last Post: 2009-08-24, 11:25
  4. Problem: Error: undefined identifier 'TDllReason'
    By ice_nadin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 14
    Last Post: 2008-12-30, 07:45
  5. undefined identifier error
    By JasonSmithMiller in forum Symbian
    Replies: 6
    Last Post: 2008-11-02, 09:42

Posting Permissions

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