www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.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...
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