For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages


François-Xavier Dumez's picture

I compile a sample with MFC an VC++ 6.0/W95 and I have error messages:

Compiling... StdAfx.cpp Compiling... sample_step.cpp C:\Step\sample_step\sample_step.cpp(40) : error C2661: 'new' : no overloaded function takes 3 parameters

for the next line:

"myGraphicDevice = new Graphic3d_WNTGraphicDevice();"

what is the problem ?

Stephane Routelous's picture


This error occurs on Windows, when on the beginning of the file , you have the following lines :

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

To avoid this problem , just delete the line : #define new DEBUG_NEW