Array of TDesC
| Mon, 2007-08-06 14:23 | |
|
|
Hi can anybody tell me, can i create array of TDesC like int a[5];? If yes how? In the following code i want to store the caption of the menu items in the array which i have to use later.....but this code gives error....please tell me the right way to do that....i will be thankfull to you...... class CMenu Thank you.... Life is too short ! so do as many good things as you can do... |






Forum posts: 132
Hi
Try this
CDesCArray* test = new(ELeave) CDesCArrayFlat(4);
BR
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 285
TDesC is an abstract class so you should never create an object of that.
Cheers,
Sri
Forum posts: 127
There is no any function in the class CDesCArray which returns const TDesC type because i have to pass the MenuItemText in DrawText() function....
Thank you....
Brajesh...
Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++
Forum posts: 1890
You can get a TPtrC through the [ ] operator. And a TPtrC is a const TDesC.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant