Original Post
Hi, me again. I''m more questions than answers this weekend, which makes a change
I get the following errors when I compile:
C:\CODING\TURNBASED\appinit.cpp(47) : error C2259: ''DXSoundManager'' : cannot instantiate abstract class due to following members:
C:\CODING\TURNBASED\appinit.cpp(47) : warning C4259: ''bool SoundManager:
laySound(enum SoundNumber,int,int)'' : pure virtual function was not defined
C:\CODING\TURNBASED\appinit.cpp(47) : error C2259: ''DXSoundManager'' : cannot instantiate abstract class due to following members:
C:\CODING\TURNBASED\appinit.cpp(47) : warning C4259: ''bool SoundManager:
laySound(enum SoundNumber,int,int)'' : pure virtual function was not defined
Line 47 is: theSoundManager = new DXSoundManager();
Now, I understand what these errors are and what they mean. What I don''t get is
(a) Why I am getting the error - DXSoundManager (a derived class of SoundManager) certainly does have the named function, both in the class definition and in the accompanying CPP file.
(b) Why I would get the error twice! And in one line. All my headers have inclusion guards.
I just wondered if anyone had seen this before and had any idea what I was doing wrong. I have too much code to post it all, and I was hoping this was one of those weird situations with a certain way to fix it.