diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-0EECEF02-EC6A-53D5-8B27-C0732DA0160A.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-0EECEF02-EC6A-53D5-8B27-C0732DA0160A.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,24 @@ + + + + + +How to +replace a C++ array with a wrapperThis document shows briefly how to replace a C++ array with a Symbian +platform object. +

C++ arrays can always be replaced with a TFixedArray<class T,TInt +S>. For example:

+TChar iSeparators[EMaxSeparators]; +CCoeControl* iControls[ENumControls]; +

becomes:

+TFixedArray<TChar,EMaxSeparators> iSeparators; +TFixedArray<CCoeControl*,ENumControls> iControls; +

The contained class must have a default constructor. The array can +also be initialised from a C++ array (using a bitwise copy).

+
\ No newline at end of file