I am trying to put together a small app using Open CASCADE, similar to the MFC viewer3d demo.
I can compile the viewer3d demo without problems, even though it complains alot about:
V:\msdev\project\cascade\samples\viewer3d\SampleViewer3d.cpp(37) : warning C4291: 'void *__cdecl Graphic3d_WNTGraphicDevice::operator new(unsigned int)' : no matching operator delete found; memory will not be freed if initialization throws an except ion
Is this normal ?
But when I try to compile my own application, it's as close as the viewer3d app I can get, it complains on this line:
myViewer = new V3d_Viewer( theGraphicDevice, (short *) "Visu3D");
The error is: V:\msdev\project\castest\DocTest.cpp(33) : error C2661: 'new' : no overloaded function takes 3 parameters
But I only get this when I compile in DEBUG mode, I have compared all defines and so on with the viewer3d sample and I cannot find any difference, the viewer3d demo app works so I am doing something wrong, but what, does any one have a clue ?