-
Modules
Hello,
Have a question that someone may be able to answer.
I am working on an app that does a couple of different things but I am thinking I would like to make it more expandable for the future. What I want to be able to do is create and app that will look in a certian folder for any dll files and then read the dll file and add a menu defined in the library. Now I can do this if I add a refernce at design time but I am unsure on how to go about making and app look for a dll file after it has been compiled.
Basically I am looking for something like the MMC where you can load a dll and then add that functionality to it.
If anyone has any ideas on how to go about this I would greatly appreciate it.
Jeremy
-
Use the system.reflection namespace.
-
Yup look into reflection. I am doing something similar only the list is maintained in an xml file so it can be changed without recompiling also. Be sure to use a common interface in your dlls reflection is a bigtime resource hog. the less your prog needs to figure out at runtime the better.