Visual K
April 24th, 1999, 06:01 AM
I have declared a CArray object embedded in the declaration of another CObject class - CDeclGood - which is similar to this:
CArray<CDeclGoodTrad, CDeclGoodTrad&> TradList;
My CDeclGoodTrad class contains 5 members m_....1, m....2 for example and so on.
When I try to populate my memebrs with SetAt in the TradList array I obtain a typecast error.
What am I doing wrong and how could I populate my elements in the list whereby some values are of long datatype and the others of CString?
I would appreciate any help regarding this issue.
CArray<CDeclGoodTrad, CDeclGoodTrad&> TradList;
My CDeclGoodTrad class contains 5 members m_....1, m....2 for example and so on.
When I try to populate my memebrs with SetAt in the TradList array I obtain a typecast error.
What am I doing wrong and how could I populate my elements in the list whereby some values are of long datatype and the others of CString?
I would appreciate any help regarding this issue.