CDesC16Array parameter

Login to reply to this topic.
Wed, 2005-03-02 16:37
Joined: 2004-12-06
Forum posts: 39
Hello,
I have function:
GetRunningApplicationsL(CDesC16Array &aItems)
...
TBuf<2*KMaxFileName+1> name;
aItems.AppendL( name );

If I call function  GetRunningApplicationsL( *iItems ),
how I should define iItems
R...Array<...>* iItems = new (ELeave) R...array<...>(...)  Huh

Thank you in advance,
Julia

Thu, 2005-03-03 07:10
Joined: 2005-02-18
Forum posts: 18
CDesC16Array parameter
Hi,

Try creating items using CDesCArrayFlat(TInt aGranularity).

Code:
CDesCArrayFlat * items = new (ELeave) CDesCArrayFlat(1);

items->AppendL(name1);
items->AppendL(name2);

Bags

  • Login to reply to this topic.