|
-
April 24th, 1999, 06:13 AM
#1
Urgent Response Needed on CArray
I have declared a CArray object embedded in the declaration of another CObject class called CDeclGood which is similar to this:
class CDeclGood : public CObject{
.
.
.
//the CArray declaration is as follows
CArray<CDeclGoodTrad, CDeclGoodTrad&> TradList;
}
My CDeclGoodTrad class contains 5 members
{
long m_....
CString m....
.
.
}
When I try to populate my memebrs with SetAt in the TradList array I obtain a typecast error as it does not recognize the element value I am entering and is expecting the CDeclGoodTrad type.
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.
-
April 25th, 1999, 04:02 PM
#2
Re: Urgent Response Needed on CArray
try
CArray<CObject, CDeclGoodTrad&> TradList;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|