我怎样写一个IE 8加载在纯托管C# [英] How do I write an IE 8 Add-On in pure managed C#

查看:194
本文介绍了我怎样写一个IE 8加载在纯托管C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个插件的IE 8,但我想用纯托管C#。这是可能的吗?我知道我们在谈论只有C ++的时间最长。

I would like to write an add-on for IE 8, but I want to use pure managed C#. Is this possible yet? I know for the longest time we were talking only C++.

推荐答案

最后,C#最终会调用到IE8的COM功能。有一个叫Spicie框架,使这更容易,在这里一些其他的例子: HTTP://www.enhanceie .COM / IE / dev.asp

Ultimately, the C# will end up calling into IE8's COM functions. There's a framework called Spicie that makes this easier, and some other examples here: http://www.enhanceie.com/ie/dev.asp

一般情况下,这是一个坏主意,写浏览器扩展.NET中因为有一个严重的性能影响,而且也因为只有一个版本的.NET可以加载到当前进程运行时冲突的可能性;如果两个插件要使用.NET冲突的版本,一个会失败。

Generally, it's a bad idea to write browser extensions in .NET because there's a severe performance impact, and there's the possibility of runtime collisions because only one version of .NET can be loaded into a process currently; if two addons want to use conflicting .NET versions, one will fail.

这篇关于我怎样写一个IE 8加载在纯托管C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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