
Wed, 11/23/2005 - 11:49
Forums:
HI!
I like to use graphic driver function in my mfc application, it doesn't give any error, but when i execute it crash!
When i debug the code it shows NULL in this portion;
myGraphicDriver = Handle(Graphic3d_GraphicDriver)::DownCast(((COCsdiApp*)AfxGetApp())->GetGraphicDevice()->GraphicDriver() );
How to get the graphic driver into the view?
I have to add any link?
2) if i use this code
try
{
myGraphicDevice = new Graphic3d_WNTGraphicDevice;
}
catch(Standard_Failure)
{
AfxMessageBox("Fatal Error During Graphic Initialisation");
}
Error:
new overloading operator can't take three parameters.
Can anybody help to solve this errors?
Regards
Saravana
Thu, 04/03/2008 - 16:29
I have got the same problem. Only with VS2005 and debug mode.
It works fine in release mode but...
error C2661: 'Standard_Transient::operator new' : new overloading operator can't take three parameters
Our constructor has no parameters so I can't understand why that error raises
Thu, 04/03/2008 - 16:43
If anybody arrives here, the simple solution is there
http://www.opencascade.org/org/forum/thread_160/