Question about WNT_GraphicDevice

I make a test file for OCC in MFC.
in my include file I define:
....
private:
Handle_WNT_GraphicDevice myGraphicDevice;
....

in my implement file:
COCC_2dTESTApp::COCC_2dTESTApp()
{
try
{
myGraphicDevice = new NT_GraphicDevice();
}
catch(Standard_Failure)
{
......
}

when I compile the project, system give me an error message: error C2661: “WNT_GraphicDevice::operator new” : no override function to accept 3 parameters

please tell me what's the problem with it.

Thanks

Milinda's picture

Just comment the #define new DEBUG_NEW line in your cpp file.