xazdw Wed, 03/12/2003 - 13:12 Forums: Other usage issuesIn 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 Wed, 03/12/2003 - 13:22 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 Log in to post comments w-zhang Wed, 03/12/2003 - 13:26 Find the next line in your file: #define new DEBUG_NEW and comment it out. Log in to post comments
Wed, 03/12/2003 - 13:22
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
Wed, 03/12/2003 - 13:26
Find the next line in your file:
#define new DEBUG_NEW
and comment it out.