如何开始在C#中创建BHO? [英] How to start creating a BHO in C#?

查看:79
本文介绍了如何开始在C#中创建BHO?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用C#创建一个BHO. 除了典型的Microsoft C ++示例以外,是否还有其他可用的文档?

I need to create a BHO in C#. Any documentation available other than the typical Microsoft C++ example?

如何开始? 谢谢...

How do I start? Thanks...

推荐答案

这确实没有那么困难,但是您必须通过COM互操作来弄脏您的手.我最近是在业务线应用程序中执行此操作的.基本上,您必须在外接程序中实现IObjectWithSite,然后从那里开始像使用嵌入式WebBrowser控件一样连接到WebBrowser事件.

It's not that difficult really, but you will have to get your hands dirty with COM interop. I just recently did this for a line-of-business application. Basically you gotta implement IObjectWithSite in your add-in and from there you just hook up to the WebBrowser events the same as you would with an embedded WebBrowser control.

这里是一个例子. http://www.15seconds.com/issue/040331.htm

这篇关于如何开始在C#中创建BHO?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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