THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/03/2005 at 21:38, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) : C++ ;
---------
I know this is C++ specific and not SDK specific, but so far I haven't found an answer (looking at my CMP Developer Network resources currently).
There is a Base class and several (over 40!) Derived classes from this. Naturally, for sanity, the list of instances are stored, passed around, and accessed using Base class pointers.
When I want to call the Derived class's method, I have to cast the Base pointer to the Derived type. Is there a way to generalize this so that I don't have lists and lists of conditional statements to determine the type and then cast to that type for every Derived class method call?
If you have a more specific term on which to search or a link to a relevant article, that would be superb!
Thanks,