Ronnie Lazar - 2002-01-22

Hi All

   When compiling HostApp project under VC 6 using STLPort 4.5.1,
I got the compilation errors "max' : undeclared identifier" in the following code.

(in ProgressBar.cpp)
// Map from steps to display units
int ProgressBar::scale (int value)
{
    if (m_total > 0)
        return std::max (1, value * (m_bounds.Width () - 1) / m_total);
   
    return value;

}

To fix it I added #include <algorithm> at the top of the file. Shouldn't this be done using VC's standard STL. Shouldn't this be permenantly added to the file?

  Thanks
    Ronnie Lazar