Compare and access from using Decriptor Array

Login to reply to this topic.
Fri, 2007-01-19 09:44
Joined: 2006-12-15
Forum posts: 45
Hi Descriptor Gurus,

I have a problem using CDesC16ArratFlat.
My problem is : I would like to store phone numbers in a Descriptor array and I want to compare with each descriptor array contains with a phone number I got from CLogEvent using iEvent.Number(). and using the matching index i want to dial another number contains in the same index of another descriptor array.

But using CDesC16ArrayFlat, I am getting compile errors :-

c:\symproj\Record\Recorder\src\phoneobserver.cpp(226): error C2475: 'CDesC16Array::MdcaPoint' : forming a pointer-to-member requires explicit use of the address-of operator ('&') and a qualified name

c:\symproj\Record\Recorder\src\phoneobserver.cpp(248): error C2664: 'TInt RCall::Dial(const RCall::TTelNumberC &) const' : cannot convert parameter 1 from 'CDesC16Array' to 'const RCall::TTelNumberC &'

The problem is that (what I think) iEvent.Number() returns : TDesC& , A reference to a non-modifiable descriptor containing the phone number.

...and my array contains CDesC16Array descriptors.

Could anybody give me some idea please. Is this particular array is not solve my purpose? help...

Tushar Bhattacharyya


Sat, 2007-01-20 14:14
Joined: 2006-12-15
Forum posts: 45
Re: Compare and access from using Decriptor Array
Hi All,

It seems nobody ready to answer my problem. Is it too tough working with Descriptor Arrays?

Please give me some clue at least to this problem. I am stuck Huh. Anyone please...

Any reply would be greatly appreciated.

Thank you for your time. Smiley

Thanking you,
Tushar.

Tushar Bhattacharyya

Sat, 2007-01-20 17:03
Joined: 2005-11-20
Forum posts: 1242
Re: Compare and access from using Decriptor Array
I would guess that this is just a case of C++ that is not right, but impossible to really tell without a chance to look at the code.

Please post the relevant portion of the .h and the .cpp file.

René Brunner

Mon, 2007-01-22 09:34
Joined: 2006-12-15
Forum posts: 45
Re: Compare and access from using Decriptor Array
Hello rbrunner,

Thank you for ur reply. I have solved my problem at last  Grin using array of type TPtrC16 . I does all the things I required like phone number storing, comparing, dialing etc.

Thank you again.


Regards,
Tushar

Tushar Bhattacharyya

  • Login to reply to this topic.