vb外壳扩展... [英] vb shell extension...
本文介绍了vb外壳扩展...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Visual Basic 2005/2008 Express编写外壳扩展?我们将不胜感激任何帮助,但我正在寻找可以使我在资源管理器中右键单击菜单创建扩展的信息.
此外,如何编写允许插件或扩展的VB应用程序,就像Paint.NET吗?
感谢您的帮助!
drummerboy0511
How can I write a shell extension with Visual Basic 2005 / 2008 Express? Any help would be most appreciated, but I''m looking for info that would allow me to create extensions to right-click menus in Explorer.
Also, how can I write a VB application that allows plugins or extensions, much like Paint.NET?
Thanks for any help!
drummerboy0511
推荐答案
您可以使用VB.NET做到这一点.或C#,但难度很大.您必须在代码中设置大量的COM互操作,并且必须正确创建和封送大量结构.最重要的是,使用托管代码编写Shell扩展存在一些问题.您可以在此处阅读有关信息 [ ^ ].强迫您改用C ++编写代码.
除此之外,请尝试 ^ ]示例.其中大多数将是C#,但只需做一些工作就可以将其转换为VB.NET.
You can do it with VB.NET or C#, but with great difficulty. There is a ton of COM interop you have to setup in your code and a bunch of structures you have to create and marshal properly. On top of that, there''s a bit of an issue with using managed code to write Shell extensions. You can read about that here[^]. It amy force you to write this in C++ instead.
Beyond that, try these[^] examples. Most of which is going to be C#, but can be converted to VB.NET with a little work.
这篇关于vb外壳扩展...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文