像样的Visual Basic插件引擎? [英] Decent Visual Basic plugin engine?

查看:77
本文介绍了像样的Visual Basic插件引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.我已经在该网站上进行了几次搜索,以找到适合Visual Basic的插件引擎. (通过插件引擎,我的意思是:程序能够在文件夹中查找插件文件(最有可能是.dll文件和代表它的图像),并在启动时加载该插件.) ''发现已经在C#中了.不幸的是,我对C#不太了解,当我尝试理解和转换它时,我失败了.

这是我想做的:
-将某些属性应用于插件.例如,如果要修改程序的界面,请向其添加接口"标签.如果只应修改某个表单,则将表单名称作为标记.
-该插件将能够修改程序的界面元素.例如,如果插件具有附加的名称"属性(嵌入在文本文件中或实际的dll中),则它将在表单上放置一个按钮,上面带有插件的名称.如果包含图标,则按钮的图片属性将设置为插件的图标.
-我希望能够将Windows窗体和控件用作某些扩展程序的接口,如果它不打算包含在主窗口的界面中.
-能够检测到用户安装了哪些插件,并将其显示在列表中.如果单击该名称,它将在面板中显示有关该名称的一些信息.
-能够选择在程序启动时启动哪些插件.

有没有办法我可以用Visual Basic做到这一点?至少有什么我可以做的起点吗?例如,要能够在自己的插件引擎上工作,我需要了解哪些基本知识?

预先感谢您的帮助!

Hello. I have done several searches on this website to find a decent plugin engine for Visual Basic. (By plugin engine, I mean: the ability for a program to look in a folder for plugin files [most likely a .dll file and an image to represent it], and load that plugin at startup.) All of the tutorials that I''ve found have been in C#. Unfortunately, I don''t understand a lot of C#, and when I''ve tried to comprehend and convert it, I''ve failed.

Here''s what I want to do:
-Apply certain attributes to the plugin. For example, if it''s meant to modify the interface of the program, add an "Interface" tag to it. If it''s supposed to only modify a certain form, include the name of the form as the tag.
-The plugin will be able to modify interface elements of the program. For example, if the plugin has a "Name" attribute attached (either embedded in a text file or the actual dll) to it, then it will put a button on the form with the name of the plugin on it. If it has an icon included, the button''s image attribute will be set to the icon of the plugin.
-I want to be able to use Windows Forms and Controls as the interface of some of the extensions, if it''s not meant to be included as part of the main window''s interface.
-Be able to detect which plugins the user has installed and display them in a list. If you click the name, it will display some information about it in a panel.
-Be able to choose which plugins to start when the program starts.

Is there a way I could do any of this with Visual Basic? Are there any starting points I could work from at least? For example, what basic things do I need to know to be able to work on my own plugin engine?

Thanks in advance for the help!

推荐答案

是的,您可以使用andy .Net语言编写插件框架.尝试使用Google搜索".net插件框架",并仔细查看搜索将返回的285,000个结果.结果的第一页上甚至有一些CodeProject文章.
Yes, you can write a plugin framework in andy .Net language. Try googling ".net plugin framework" and look through the 285,000 results that search will return. There are even some CodeProject articles on the first page of results.


这篇关于像样的Visual Basic插件引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆