
Tue, 05/30/2006 - 23:07
Forums:
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
Wed, 05/31/2006 - 10:16
Hi,
comment out the VC debug defines:
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
Greets,
Patrik
Wed, 05/31/2006 - 11:49
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?
Wed, 05/31/2006 - 12:20
I assume you also have these definitions in other source files. Remove them all...
Greets,
Patrik
Wed, 05/31/2006 - 15:54
The problem is solved. Thanks a lot