mshtml.dll 版本是 8.0,Microsoft.mshtml 是 7.0

标签 mshtml microsoft.mshtml

我有点困惑,也许你可以帮助我。

我有 mshtml.dll(8.0 版)和 Microsoft.mshtml.dll(7.0 版)

如果我添加对 WPF 项目的引用并尝试添加 mshtml.dll,它会告诉我该引用必须是有效的程序集或 com 组件。这是正确的,因为我知道我必须添加对 Microsoft.mshtml.dll 的引用,因为它是 mshtml.dll 的包装器,对吗?

现在,我的 mshtml.dll 版本是 8.0,Microsoft.mshtml 是 7.0。

在哪里可以找到 8.0 版本的 Microsoft.mshtml.dll?

如果我添加 Microsoft.mshtml.dll 的 7.0,它会运行 mshtml 8 dll 的功能吗?

他们为什么不同?

非常感谢大家,杰森

最佳答案

Microsoft.mshtml 是 mshtml.dll 的 dll 包装,这就是为什么您会看到版本差异,这将存储在(大致位置)

c:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11\Microsoft.mshtml.dll

对于 ie-8 到 ie-11,我使用 Microsoft.mshtml 7.0.XXXX.XX dll 没有任何问题。
但是ie-11不支持dll的一些功能。
如果您遇到任何问题,请告诉我。

是的,除了某些功能外,它可以毫无问题地运行您的所有功能

关于mshtml.dll 版本是 8.0,Microsoft.mshtml 是 7.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3508112/

相关文章:

c++ - 如何在 IE9 中重绘/重绘指向 DOM 中图像元素的 IHTMLElement?

c# - 使用 explorer.document 作为 HtmlAgilityPack 的源 HtmlDocument

c# - mshtml.HTMLDocument 如何隐藏具有类属性的动态创建的 div

c# - 为什么 MSHTML for .Net 没有 querySelector 和 querySelectorAll,或者它们在哪里?

html - 所见即所得的html编辑器查询

C# 分配 mshtml.HTMLDocument.frames 时指定的强制转换无效

internet-explorer - Internet Explorer 自动化 : how to suppress Open/Save dialog?

.net - 如何在 mshtml.HTMLDocument (.NET) 中禁用 Javascript