// RegStringArray.cpp: implementation of the CRegStringBuffer class. // ////////////////////////////////////////////////////////////////////// #include "RegStringBuffer.h" #include ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CRegStringBuffer::CRegStringBuffer(int arraySize, int elementSize) : m_arraySize(arraySize), m_elementSize(elementSize), m_cellsUsed(0) { m_Array = new TCHAR*[arraySize]; if (m_Array == NULL) { LOG0(LOG_ERROR, "Couldn't allocate CRegStringBuffer"); } else { for (int i=0; i b) return a; else return b; } TCHAR** CRegStringBuffer::Access(int NumElements, int ElementSize) { if ((NumElements > m_arraySize) || (ElementSize > m_elementSize)) { //delete the data structure for (int i=0; i