I want to create a COM for my project which has one creatable class and more subclasses which are not creatable, all of them being public.
The hierarchy operates somewhat like the ListView control, where the ListItems collection exposes the ListItem objects. The Parent class will have a collection that stores Child1 class objects, and each Child1 class will have a collection that holds the Child2 objects.Code:Class Parent: Public/Creatable | |---- Class Child1 Public/Not Creatable | | | |---- Class Child2 Public/Not Creatable
Since the Persistable property is available only for public creatable classes, I can use this property only for the Parent class. But I actually want to store the properties of the Child1 and Child2 classes.
Any ideas?
.





Reply With Quote