Okay, building a D3D App. I have two objects: CObject and CBlock (declared/defined in Object.h/cpp and Block.h/cpp, respectively). CBlock, in theory, is supposed to inherit from CObject (which, by the way, has one of those "undefined" functions, I forget what they''re called... Code''s posted below, let me know if you know). However, the code below gives a "''CObject'': Base class undefined" error. Help:
Object.h
#pragma once
#include "Direct3D.h"
#include <time.h>
class CObject
{
public:
virtual void Update();
virtual void Render()=0;
CObject();
~CObject();
// ...and so forth... //
};
Block.h
#pragma once
#include "Direct3D.h"
#include "Object.h"
class CBlock : public CObject
{
public:
CBlock();
~CBlock();
void Render();
private:
int m_blockX; // in relation to playing field
int m_blockY;
D3DCOLOR m_color; // make this completely random?
};
That''s it. If anyone can help, I''d appreciate it.
-=-=-=-=-=-=-=-"We are the Dyslexia of Borg. Your ass will be laminated. Futertility is resistant.""SWEET LADY FREEDOM! LET'S MAKE OUT!!"