【问题标题】:Document in OleObject is missing缺少 OleObject 中的文档
【发布时间】:2014-05-03 20:45:40
【问题描述】:

我正在使用 Embarcadero RAD Studio XE5 C++。 为什么在 WebBrowser1->OleObject-> 之后没有“文档”?? 除此之外我还有一个问题:

#include <mshtml.h>
...
HtmlDocument doc;

错误:

[bcc32 Error] Unit1.cpp(16): E2451 Undefined symbol 'HtmlDocument'

【问题讨论】:

    标签: c++ c++builder twebbrowser


    【解决方案1】:

    我从未使用过这种特殊的 VCL 样式包装器,因此我在 Embarcadero 开发者网络 (EDN) 上进行了一些搜索。 Tim DelChiaro 的这篇文章可能会有所帮助:iOS Web Browser with C++Builder XE5。导航几次后,示例源代码可用。此示例代码位于 Source Forge 上:RAD Studio Demo Code - MobileCodeSnippets - CPP - WebBrowser

    在我的 RAD Studio 帮助中,在 TWebBrowser 组件上它说:

    Note: Because TWebBrowser wraps the SHDOCVW.DLL, you must have SHDOCVW.DLL installed to use this component. This DLL ships with Internet Explorer 4 and later.

    请注意,上面的文章描述了在 iOS 上使用该组件。因此,在示例项目中可能有一些特别需要注意的地方。还有一篇 Vino Rodrigues 于 2001 年发表的 EDN 文章,由于年龄和以 Delphi 为中心,这篇文章可能没有那么有用,位于:Using The WebBrowser Component

    在 EDN 站点中使用 twebbrowser 进行搜索时会出现其他 EDN 文章。两页的东西出现了。很有可能不需要使用本地声明的HtmlDocument 实例。我希望这些信息对您有所帮助。

    【讨论】:

      猜你喜欢
      • 2014-07-07
      • 1970-01-01
      • 1970-01-01
      • 2018-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多