M
Mike Stenzler
I am new to Template programming and I would like to create an array of
user-defined class objects using MFC CArray. Normally I would use linked
list processing - create an object class and then an object-list class,
but in this instance array processing would be more efficient. However I
need to use arrays that can dynamically shrink and grow ala Visual Basic
arrays.
I'm confused as to how to declare/implement the CArray using my Class.
class mydatastruct
{
public:
mydatastruct();
~mydatastruct();
private:
CString m_date;
double m_value;
};
How would I declare an instance of a CArray of mydatastructs? I'm
thinking this is something I should be able to do...
Mike
user-defined class objects using MFC CArray. Normally I would use linked
list processing - create an object class and then an object-list class,
but in this instance array processing would be more efficient. However I
need to use arrays that can dynamically shrink and grow ala Visual Basic
arrays.
I'm confused as to how to declare/implement the CArray using my Class.
class mydatastruct
{
public:
mydatastruct();
~mydatastruct();
private:
CString m_date;
double m_value;
};
How would I declare an instance of a CArray of mydatastructs? I'm
thinking this is something I should be able to do...
Mike