1
Suggestions and Requests / Re: c++ reverse engineering, CArray
« on: June 07, 2006, 11:04:25 pm »Quote
typedef only defines, what type of elements will be stored.
I dont understand what you mean

When the typedef does not work, should this work then?
defining a class derived from CArray<CTestProtocol*,CTestProtocol*> ?
Code: [Select]
#include <afxtempl.h>
class CTestProtocol
{
public:
CTestProtocol();
virtual ~CTestProtocol();
};
class CProtocolArray : public CArray<CTestProtocol*,CTestProtocol*>
{
;
};
class AFX_EXT_CLASS CProtocolHandler
{
public:
CProtocolHandler();
virtual ~CProtocolHandler();
protected:
CProtocolArray m_aProtocol;
};
Because this also doesn't put a link between CProtocolArray and CTestProtocol