http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help with pure virtual base class



============================================================
Improve your personal productivity. And gain time to focus
on your favorite topics. It's simple and free when you use
the productivity-packed email subscription tools at My
Topica. Sign up today at
http://click.topica.com/caaabHJbUrGczbU68iFa/register
============================================================

To anybody who knows,

   Ok here we go.  I am trying to create a base class through which all 
of my objects to be drawn to the screen will be derived from.  So I will 
try to break the problem down accordingly -> I instantiate a derived 
object and a pointer to the base object and set the address of the 
pointer to the derived object like so:

CRect myRect;
CObject *object;
object = &myRect;

Everything is good up to this part. I then call on my engine to append 
the object to a list like so:

Engine.AppendObjectToList(object);

The CEngine method above takes as an argument a pointer to an object and 
the definition looks like this.

class CEngine{

private:
   
CObject *polyObject;
public:
  void AppendObjectToList(CObject *object){
     
};

==^================================================================
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrGcz.bU68iF
Or send an email To: gameprogrammer-unsubscribe@topica.com
This email was sent to: list@pendleton.com

T O P I C A  -- Learn More. Surf Less.
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01
==^================================================================