I created a class called WaveFile and in the public part of the class I have the following function:
Now from the Sound class I call that function like this:Code:int loadWaveFile(const char *filename, Sound *CurrentSound);
What I get and I get a compiler error, "illegal call of non-static member function". What am I doing wrong?Code:WaveFile::loadWaveFile(name, this);
Thanks in advance.