Compilation

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

Hello,

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

Stephane