c++ - Template/mfc problem
- Richard M Thomas (29/29) Feb 03 2003 I have ported the following code from Symantec 7.5 (using mfc4), where
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(...)]
}
}
Feb 03 2003








Richard M Thomas <rthomas ifp.mat.ethz.ch>