×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    illegal function and undefined identifier

    Hi frnds,
    m developing application for makin n receiving call,but i am getting these two errors
    1) illegal function definition and
    2) undefined identifier aCallStatus


    void CIsvTelCallAppDlg::GetCallStatusCompleteL(TInt aStatus,
    const CTelephony::TCallId aCallId,
    CTelephony::TCallStatusV1& aCallStatus,
    TDesC16& aErrMsg )
    { //illegal function definition

    TBuf<EIsvTelCallAppEdwinMaxLength> callStatusStr;

    if (aStatus != KErrNone)
    {
    callStatusStr.Copy(iErrString);
    }
    else
    {
    switch (aCallStatus.iStatus) // undefined identifier aCallStatus
    {
    case CTelephony::EStatusUnknown:
    {
    callStatusStr.Copy(iUnknownStr);
    }
    break;

    case CTelephony::EStatusIdle:
    {
    callStatusStr.Copy(iIdleStr);
    }
    break;

    case CTelephony::EStatusDialling:
    {
    callStatusStr.Copy(iDiallingStr);
    }
    break;

    case CTelephony::EStatusRinging:
    {
    callStatusStr.Copy(iRingingStr);
    }
    break;

    case CTelephony::EStatusAnswering:
    {
    callStatusStr.Copy(iAnsweringStr);
    }
    break;

    case CTelephony::EStatusConnecting:
    {
    callStatusStr.Copy(iConnectingStr);
    }
    break;

    case CTelephony::EStatusConnected:
    {
    callStatusStr.Copy(iConnectedStr);
    }
    break;

    case CTelephony::EStatusReconnectPending:
    {
    callStatusStr.Copy(iReconnectPendingStr);
    }
    break;

    case CTelephony::EStatusDisconnecting:
    {
    callStatusStr.Copy(iDisconnectingStr);
    }
    break;

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: illegal function and undefined identifier

    Looks like Compilation Errors, make sure to include Header File For CTelephony.

  3. #3
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    Re: illegal function and undefined identifier

    Yes Rao i have included all the header file but still errors are as it is

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: illegal function and undefined identifier

    Can you show us the out put of the compilation to be more clear .

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Porting C Open source.
    By debasish1234 in forum Open C/C++
    Replies: 7
    Last Post: 2008-01-28, 11:06
  3. Replies: 8
    Last Post: 2007-10-16, 15:05
  4. Parsing file content
    By hendrawan.ashari in forum Symbian
    Replies: 7
    Last Post: 2007-03-09, 10:41
  5. Whats missing?
    By imrank in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-08-28, 07:22

Posting Permissions

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