sgaggerj
asked on
Loading modules (.dll) dynamically in VB.Net 2005
Hi all,
i'm wondering if it is possible (and how) to dynamically load pieces of my program.
I'd like to create different parts of my program and compile them as dll's. Then my main program will load the dll's that it finds in a folder.
For example,
in my .\Plugins folder I have the following:
Orders.dll
Inventory.dll
Customers.dll
(each of them is part of a GUI - with interfaces to access a Panel, MenuItem, and TreeNode)
when my program loads, it will look in .\Plugins and load each of the dlls it finds (each one will have the same entry format)
on an update i add Ledger.dll to the .\Plugins folder, and the next time the program runs, it loads Ledger.dll also.
can this be done? or do i need to hard-code the declarations?
thanks!
J
i'm wondering if it is possible (and how) to dynamically load pieces of my program.
I'd like to create different parts of my program and compile them as dll's. Then my main program will load the dll's that it finds in a folder.
For example,
in my .\Plugins folder I have the following:
Orders.dll
Inventory.dll
Customers.dll
(each of them is part of a GUI - with interfaces to access a Panel, MenuItem, and TreeNode)
when my program loads, it will look in .\Plugins and load each of the dlls it finds (each one will have the same entry format)
on an update i add Ledger.dll to the .\Plugins folder, and the next time the program runs, it loads Ledger.dll also.
can this be done? or do i need to hard-code the declarations?
thanks!
J
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that seems to help out alot more!
thanks!
thanks!
ASKER