Hi all,
I have a CArray of struct, and I want to assign or add a new element of struct type to the CArray, but got error message, something like "No = operator" or "No constructor for struct".
Here is the sample code:
struct Sample{
CUIntArray Index;
CRect Rct;
CDblPoint Point; //user defined data type
};
Sample abc;
CArray<Sample, Sample> def;
def.Add(abc); // or def[0]=abc;
Thanks.
I have a CArray of struct, and I want to assign or add a new element of struct type to the CArray, but got error message, something like "No = operator" or "No constructor for struct".
Here is the sample code:
struct Sample{
CUIntArray Index;
CRect Rct;
CDblPoint Point; //user defined data type
};
Sample abc;
CArray<Sample, Sample> def;
def.Add(abc); // or def[0]=abc;
Thanks.