S
Stu
Hi,
I'm looking at making a piece of software which will have a central
executable file, and a list of DLLs (kind of like Office "add-ins")
that will provide different functionalities - the idea being I can
write new modules as and when they're needed, and distribute them to
customers as necessary.
Could anyone provide any advice as to the best way to go about this? I
was thinking a list of "installed" modules could be stored in the
registry. I'm then hoping that I could do something along the lines of
loop through the list, and create an array of "modules" by referring to
different objects in different DLLs.
Is it possible to load a DLL by name, and create an instance of an
object by name (i.e. dynamically, at runtime - not at designtime)? If
so, how do I do this? I'm envisaging that all modules will have
objects implementing the same interface.
Thank you in advance for your help!
Stuart Jones
To e-mail me, replace the part of my e-mail after the @ with
university-college.oxon.org
I'm looking at making a piece of software which will have a central
executable file, and a list of DLLs (kind of like Office "add-ins")
that will provide different functionalities - the idea being I can
write new modules as and when they're needed, and distribute them to
customers as necessary.
Could anyone provide any advice as to the best way to go about this? I
was thinking a list of "installed" modules could be stored in the
registry. I'm then hoping that I could do something along the lines of
loop through the list, and create an array of "modules" by referring to
different objects in different DLLs.
Is it possible to load a DLL by name, and create an instance of an
object by name (i.e. dynamically, at runtime - not at designtime)? If
so, how do I do this? I'm envisaging that all modules will have
objects implementing the same interface.
Thank you in advance for your help!
Stuart Jones
To e-mail me, replace the part of my e-mail after the @ with
university-college.oxon.org