diff --git a/examples/osgscalarbar/osgscalarbar.cpp b/examples/osgscalarbar/osgscalarbar.cpp index 80e56937c..8b0ecf76d 100644 --- a/examples/osgscalarbar/osgscalarbar.cpp +++ b/examples/osgscalarbar/osgscalarbar.cpp @@ -27,6 +27,37 @@ using namespace osgSim; using osgSim::ScalarBar; +#if defined(_MSC_VER) +// not have to have this pathway for just VS6.0 as its unable to handle the full +// ScalarBar::ScalarPrinter::printScalar scoping. + +// Create a custom scalar printer +struct MyScalarPrinter: public ScalarBar::ScalarPrinter +{ + std::string printScalar(float scalar) + { + std::cout<<"In MyScalarPrinter::printScalar"<