vb.net VB.NET中的DLL插件系统
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22445340/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
DLL Plugin system in VB.NET
提问by Visual Magic
My question would be how it would be possible to make a plugin system in VB.net (2010) I'd want it to have the ability to work this way:
我的问题是如何在 VB.net (2010) 中制作插件系统我希望它能够以这种方式工作:
It would be a DLL File written in VB.Net
It could be loaded on startup (of the program) when placed in a specific folder (e.g. "\plugins\")
The DLL file would have the ability to read values from the base program, and run subroutines / functions. Basically full interaction with the program.
(I Know I probably have to write something big / hard for this but i'm all in it)
采纳答案by johnpili
Hope this helps. You will need to implement an IPlugin
希望这可以帮助。你需要实现一个IPlugin
http://code.msdn.microsoft.com/windowsdesktop/Creating-a-simple-plugin-b6174b62http://www.codeproject.com/Tips/546639/How-to-create-an-easy-plugin-system-in-Csharp
http://code.msdn.microsoft.com/windowsdesktop/Creating-a-simple-plugin-b6174b62 http://www.codeproject.com/Tips/546639/How-to-create-an-easy-plugin-system -in-Csharp
You can also take a look to a similar topic here in stackoverflow Writing C# Plugin System
您还可以在 stackoverflow Writing C# Plugin System 中查看类似的主题

