working with dll's as plugins

Hi,

I'd like to create application that can update and improve functions by dll files as plugins. i wrote my own dll and check a folder (eg: Plugins) for the files with .dll extension and for each dll files in that folder i want to add all of the file's functions into my main application. how can i do this

here's a short and simple example:

dll:

Public Class MSGDll

Public Sub SendMsg(byval Msg as string)

msgbox(msg)

end sub

End class

Main app:

Public Class Form1

Private Sub form_load(...)

for each path as string in my.computer.filesystem.getfiles("Plugins")

me.listbox1.items.add(path)

>>> and here i would write a code that imports the SendMsg(path as string) function of the found MSGDll.dll file<<<

end sub

end class

Could anybody tell me some solution

thnx for the help;




Answer this question

working with dll's as plugins