I need a programming structure whereby a factory interface creates instances of a class defined in another module. For example,
dll-1
Defines the factory interface and base class
dll-2
Derives from the base actor to create a specialized actor class
exe
Should be able to create instances of specialized actor using the factory interface in dll-1 and a unique identifier(string or an integer) in a call that resembes Baseclass* instance = Factory.NewInstance("Unique Identifier for specialized class");