×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    18

    how to pass TBuf type variable to a functions which will return integer type

    Hi,
    in my applications i am getting error,plz help me out.
    CMapCall::makeCall()
    {
    TBuf<200> iNumber;
    iNumber.Append(_L("Calling\n"));
    iNumber.Append(aNumber);
    CMapContact *iContact=CMapContact::NewL();
    CleanupStack::PushL(iContact);
    iContact->FindContactsFromDbL(iNumber);

    }

    TInt CMapContact::FindContactsFromDbL(TDesC& aMobileNumber)

    so error is comming functions mismatch.so plz me how i can TBuf type to functions which is returning int type

  2. #2
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Exclamation Re: how to pass TBuf type variable to a functions which will return integer type

    Hi use like this...

    TInt CMapContact::FindContactsFromDbL(TDes& aMobileNumber)

    or if not solve, can shre what are u doing in this function with aMobileNumber.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  3. #3
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: how to pass TBuf type variable to a functions which will return integer type

    Input descriptor parameters should be passed as const TDesC&, output parameters should be passed as TDes&.

    Please don't name local variables beginning with an i.

Similar Threads

  1. Replies: 4
    Last Post: 2007-05-31, 07:06
  2. Replies: 6
    Last Post: 2005-10-03, 05:51
  3. Extract an integer from a TBuf
    By carl_rocha in forum Symbian
    Replies: 2
    Last Post: 2004-06-04, 20:27
  4. How to convert TBuf type variable to TDes8
    By ashbhatia in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-09-20, 10:51

Posting Permissions

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