David MacDonald
asked on
CArray of CStringArray
Hi all!
Got a little problem, my CArray is declared like that:
CArray< CStringArray , CStringArray& > cZoneArray;
And i try to fill it like that:
CStringArray tempArray;
CString tempString;
//Numéro de la zone
tempArray.Add( "1" );
//Prendre le minScan
m_EditMinScanDiam.GetWindo wText( tempString );
tempArray.Add( tempString );
//Prendre le maxScan
m_EditMaxScanDiam.GetWindo wText( tempString );
tempArray.Add( tempString );
cZoneArray.Add( tempArray );
But I get this puzzling error:
d:\...\afxtempl.h(443) : error C2582: 'CStringArray' : 'operator =' function is unavailable
d:\...\afxtempl.h(1566) : while compiling class-template member function 'void __thiscall CArray<class CStringArray,class CStringArray &>::SetAtGrow(int,class CStringArray &)'
What am i doing wrong here?
Thanks!
Moonover
Got a little problem, my CArray is declared like that:
CArray< CStringArray , CStringArray& > cZoneArray;
And i try to fill it like that:
CStringArray tempArray;
CString tempString;
//Numéro de la zone
tempArray.Add( "1" );
//Prendre le minScan
m_EditMinScanDiam.GetWindo
tempArray.Add( tempString );
//Prendre le maxScan
m_EditMaxScanDiam.GetWindo
tempArray.Add( tempString );
cZoneArray.Add( tempArray );
But I get this puzzling error:
d:\...\afxtempl.h(443) : error C2582: 'CStringArray' : 'operator =' function is unavailable
d:\...\afxtempl.h(1566) : while compiling class-template member function 'void __thiscall CArray<class CStringArray,class CStringArray &>::SetAtGrow(int,class CStringArray &)'
What am i doing wrong here?
Thanks!
Moonover
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That's a good question - it depends on how you implement that.
ASKER
Ok, that's a good start, i'll serialize it manually, it won't be too messy...
Thanks a lot jkr!
Thanks a lot jkr!
ASKER
will the data be serialized or only the addresses of my StringArrays?