Compilation error with handles

Hello everybody,
I'm developing an MFC extension dll which uses OpenCASCADE,
and I'm getting a really strange compilation error at the following line

Handle(Geom_BezierCurve) curve = new Geom_BezierCurve(CurvePoles);

saying that 'Standard_Transient::operator new' doesn't accept 3 arguments.

I really don't understand what's going on here, the exact same code is working on regular dll, any idea?
Thanks

Silvia

Patrik Mueller's picture

Hi Silvia,

look here: http://www.opencascade.org/org/forum/thread_160/?forum=3

Greets,

Patrik

Silvia's picture

Thank you very much!!!
I've lost one full day on this.

Cheers,

Silvia