addChangeListener' : is not a member of 'juce::Slider'"

Hi all,
I am using VC8.
I am following the haydxn’s JUCE tutorial. Everything worked fine until i did this

slider->addChangeListener (this); in the constructor of MainComponent class, (as per his intructions on page 21 of the tutorial.

I am getting “error C2039: ‘addChangeListener’ : is not a member of ‘juce::Slider’”

I have just started using JUCE so I am not familiar with class hierarchy
but , I did check the JUCE .html docs and don’t see any implementation of
addChangeListener() in Slider or in it’s base classes.
I suppose haydxn meant addSliderListener().
Can anybody help me with that. I won’t be able to sleep until I find out :? :?:

Yes, he meant addSliderListener because those tutorials are from a much older version of Juce. Lot of nice changes since then, and I think he is updating it… But yea, a few minor things different from the tutorials, like that, but most should still work.