Problem with TDes

Login to reply to this topic.
Fri, 2008-04-04 08:27
Joined: 2008-03-11
Forum posts: 26

Hi everybody, I have a question that is probably a stupid question but I've been searching and i don't know which is the solution. Here is my code:
TUint8 comand[2];
TDes<10> c; // I have these errors: '(' expected and ')' expected
Analyse(iCom,comand, c);

void Analyse(TInt c, TUint8 comand[], TDes& c);

Is there an error in the definition of the TDes?or is it another problem? thanks


Fri, 2008-04-04 08:40
Joined: 2005-11-20
Forum posts: 1248
Re: Problem with TDes

Make it TBuf<10> instead of TDes<10>, and it should work.

Recommended reading:
http://descriptors.blogspot.com/


René Brunner

Fri, 2008-04-04 09:26
Joined: 2007-09-15
Forum posts: 61
Re: Problem with TDes

In Short, you cannot instantiate directly from TDes, they are used as arguments in passign values in functions.

Fri, 2008-04-04 10:05
Joined: 2007-09-03
Forum posts: 25
Re: Problem with TDes

TDes and TDesC are abstract classes, used only while passing parameters to functions. You can not instantiate these classes.

Fri, 2008-04-04 12:03
Joined: 2008-03-11
Forum posts: 26
Re: Problem with TDes

Thanks!

  • Login to reply to this topic.