what's wrong ?

In a class ,I define"Handle(TColgp_HArray1OfPnt2d) aPnts = new TColgp_HArray1OfPnt2d(1, nPnts);".
When I debug,The error occur:error C2661: 'new' : no overloaded function takes 3 parameters.

Patrik Mueller's picture

Hi,

if you use VC6 comment out this block:

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

Than try it again.

Best regards,

Patrik

w-zhang's picture

Find the next line in your file:
#define new DEBUG_NEW
and comment it out.