I've been searching for a while but can't find much information on this.
Basically, I want to dynamically load a .Net DLL and call a method within the DLL.
What's the best way to go about doing this?
Printable View
I've been searching for a while but can't find much information on this.
Basically, I want to dynamically load a .Net DLL and call a method within the DLL.
What's the best way to go about doing this?
To give some more information, I have a basic interface that the DLL incorporates. Something like this:
VB Code:
public interface ITest{ void Initialize(string MyPath, ref System.Windows.Forms.ToolStripContainer Canvas); }
Then I created a DLL that has a class that inherits this interface.
How would I load the dll into an application and launch the method?
These two articles may give you some insight.
http://www.codeproject.com/csharp/c_...chitecture.asp
http://www.codeproject.com/dotnet/Pl...erClassBrk.asp