I really, really want to store some settings somewhere that my control
utilizes to create new object(s)(i.e., class, struct) at runtime without it
knowing about the type it could create at compile time. The type would
support a particular interface or base class let's say.
Couple thoughts:
1. Store the 'serialized' data in the store and let the deserializer create
it for me.
Slower
2. Lookup table (but then my control needs to know all the types it could
create before compile time).
Would be faster than the serialized version.
3. ActiveX control
Here we would have the coclass lookup issue.
4. ?
There must be an easier way. How does the serializer instance the type from
data? I know it stores the class name in the stream but how does it go from
just the classname to the object instance?
Thx for the help.