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
Re: how to pass TBuf type variable to a functions which will return integer type
Hi use like this...
TInt CMapContact::FindContactsFromDbL([COLOR="Red"]TDes&[/COLOR] aMobileNumber)
or if not solve, can shre what are u doing in this function with aMobileNumber.
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.