Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Deriving subclasses from ObjectData

    SDK Help
    0
    2
    170
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post