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 complie 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

Patrik Mueller's picture

Hi,

comment out the VC debug defines:

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

Greets,

Patrik

googoo's picture

Thanks a lot. I modified my program according to your suggestion. System still give me the same error message in VC debug mode. But I can compile it in release mode. What's wrong with it?

Patrik Mueller's picture

I assume you also have these definitions in other source files. Remove them all...

Greets,

Patrik

googoo's picture

The problem is solved. Thanks a lot