|
-
Dec 18th, 2004, 10:25 PM
#1
Thread Starter
Lively Member
Dynamically loading DLLs? (Plug-Ins)
Hi guys, this is not something I'm dealing with right now, but just planning ahead for my next project and would appreciate if someone could help me think this trough.
The basic idea is that I'm creating a C# app that will need something like plug-in support. The main program will start, look in the \Plugins directory which will contain a number of .dll files, take each one of those files, get information about each plug-in (name, version, description, some other stuff...), and then when needed call some functions from them.
So the first question is, of course, how do I go about doing this? More specifically, how can I take a string which contains the path to a dll file, load that file at run-time and then execute code from it? All the plug-ins will have a similar structure, so the interface will be the same. The only difference will be in what they do underneath.
If you have some ideas or even examples on the topic, please share them. As I said, this is just thinking forward, so I don't think I can give much more details, but if you have some experience with this type of thing, please give me some pointers (get it... pointers? oh god why did they have to go )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|