www.digitalmars.com         C & C++   DMDScript  

c++ - Template/mfc problem

I have ported the following code from Symantec 7.5 (using mfc4), where 
it compiles without problem, to dm8.32 where it stops with the error 
shown. Any suggestions as to where the problem lies are most welcome. 
Sorry if it's just me...

typedef CArray<int,int> CIntArray;
class CMatrix : public CObject
     CIntArray* m_iArray;
     CMatrix(int rows,int cols);

#include <afxtempl.h>
#include "CMatrix.h"
CMatrix::CMatrix(int rows, int cols)
     for(int i=0;i<rows;i++)
       m_iArray = new CIntArray;
      Error: // ..\mfc\include\32-bit\afxtempl.h(305): no match for 
           function '?_P(unsigned ,char *,int )' [in CArray::SetSize(...)]
Feb 03 2003