Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

VS2010 OCC6.6.0 & Visual3d_Layer DrawText

Marco Balen's picture

compiling the new release I get an error with missing DrawText method of Visual3d_Layer class.
It seems that there is problem with other DrawText methods of windows.

To avoid the problem I have undefined the DrawText method in Visual3d_Layer.hxx.
#ifdef WNT
#undef DrawText
Standard_EXPORT void DrawText(const Standard_CString AText,const Standard_Real X,const Standard_Real Y,const Standard_Real AHeight) ;

I think this is not the best way to solve the problem.

Any suggestion ?