February 03, 2003 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... Regards Richard +++++ [CMatrix.h] typedef CArray<int,int> CIntArray; class CMatrix : public CObject { private: CIntArray* m_iArray; public: CMatrix(int rows,int cols); .... }; [CMatrix.cpp] #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(...)] } } |
Copyright © 1999-2021 by the D Language Foundation