Deriving subclasses from ObjectData
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/12/2004 at 12:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.200
Platform: Mac OSX ;
Language(s) : C++ ;---------
I am trying to do make a subclass of a subclass of ObjectData. Is this possible?The first subclass of ObjectData is:
#include "c4d.h" #include "c4d_symbols.h" #include "Ovehicle.h" class Vehicle : public ObjectData { ... }
The second subclass is:
#include "c4d.h" #include "c4d_symbols.h" #include "Ovehicle.h" #include "Otruck.h" class Truck : public Vehicle { ... }
But I get an error that says that Vehicle is an unknown identifier.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/12/2004 at 07:00, xxxxxxxx wrote:
You are declaring the Vehicle class in the header and not the CPP file, right? The derived class must know the internals of the base class in order to include its members, process overriding members, and check for virtual methods.
Would need to see the header.
Robert