So, I have a base class and a derived class..
class CBase_Arrow
{
protected:
unsigned char * Sprite;
int Type;
void Destroy();
};
class CArrow : public CBase_Arrow
{
public:
CArrow();
};
Now I'm trying to define the Destroy() function for the derived class like so..
/*void CArrow::Destroy()
{
delete ArrowNorm;
}*/
(commented out because it isn't working..)
...aaand it's not liking it for some reason.
error C2509: 'Destroy' : member function not declared in 'CArrow'
I'm not having problems with the Type variable, which is also derived, so I don't understand this at all.