/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //PointSeriesFactory.h #pragma once #include "PointSeries.h" #define POINTSERIES_MEMORYSIZE 8192 class CPointSeriesMemory { public: CPointSeriesMemory(); ~CPointSeriesMemory(); CPointSeries m_seriesarray[POINTSERIES_MEMORYSIZE]; BYTE m_flag[POINTSERIES_MEMORYSIZE]; DWORD m_dwCount; CPointSeries* NewPointSeries(); BOOL DeletePointSeries(CPointSeries* pPointSeries); }; class CPointSeriesCreator { public: CPointSeriesCreator(); ~CPointSeriesCreator(); //Attributes private: CTypedPtrArray m_pointseriesarray; //Operations public: CPointSeries* NewPointSeries(); void DeletePointSeries(CPointSeries* pPointSeries); void DeletePointSeries(CTypedPtrArray& seriesarray); }; extern "C" AFX_EXT_API CPointSeriesCreator* WINAPI AfxGetPointSeriesFactory();