几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】operator new is not accessible (http://www.dimcax.com/hust/showthread.php?t=17817)

yang686526 2009-05-06 09:29 PM

【转帖】operator new is not accessible
 
operator new is not accessible
operator new is not accessible
i've tryed to compile odamfcapp in bc++builder 6.0. i've converted from vc++, using the bc++ wizard.
in function
odgsviewptr exgsgdidevice::createview(const odgsclientviewinfo* , bool )
i get this error:
error: odrxobject:perator new() is not accessible
the same happens in createview if i add exgsgdisimplevectorizedevice in my test application (that otherwise works good with exgssimpledevice).
i'm really thinking about to change compiler and use vc++... or to change my work
thanks for any answer.
stefano gemma
the operator new() is protected in odrxobject and it should be accessible in exgsgdidevice...
as workaround you can use the global operator new:
code:
odgsviewptr exgsgdidevice::createview(const odgsclientviewinfo* , bool )
{
return odgsviewptr(::new odrxobjectimpl<exgdiview>, kodrxobjattach);
}
quote:
originally posted by sergey vishnevetsky
the operator new() is protected in odrxobject and it should be accessible in exgsgdidevice...
as workaround you can use the global operator new:
code:
odgsviewptr exgsgdidevice::createview(const odgsclientviewinfo* , bool )
{
return odgsviewptr(::new odrxobjectimpl<exgdiview>, kodrxobjattach);
}
there must be something that borland compiler handle different than microsoft compiler. i've changed to vc++2003.net and now all samples applications compiles without any problem.
thanks.
stefano gemma


所有的时间均为北京时间。 现在的时间是 11:24 AM.