/// Add this object to the object hierarchy void AddToHierarchy() { IManager *manager; // make sure RTTI information checks that this component is truly // of type IManager, some bug is preventing this from working? // manager = dynamic_cast<IManager *>(toolBox->CreateComponent( manager = static_cast<IManager *>(m_ToolBox->CreateComponent(&m_hierManTypeName, 0)); assert(manager != NULL); manager->AddObject(this, &m_ParentName); }