NlMakesis Y-Browser Y-Tasks
Hi
I am new in symbian and i want to copy a array into a buffer one by one but i di'nt so please help me.
Thanks
CDesCArray* array = new(ELeave) CDesCArrayFlat(2);
TBuf<40> test; //One way test.Copy( (*array)[i] ) ;
// 2nd way test.Copy( array->MdcaPoint(i) );
From my point of view first is better.
BR Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
I assume you want to copy all of the items in the array to the buffer, in which case calling Copy() in a loop will overwrite the previous contents, so call Append() in a loop
Forum posts: 134
Hi
CDesCArray* array = new(ELeave) CDesCArrayFlat(2);
TBuf<40> test;
//One way
test.Copy( (*array)[i] ) ;
// 2nd way
test.Copy( array->MdcaPoint(i) );
From my point of view first is better.
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: 364
I assume you want to copy all of the items in the array to the buffer, in which case calling Copy() in a loop will overwrite the previous contents, so call Append() in a loop