XP SP2 and HTCs in webbrowser control



I have an HTC (derived from the MS "expand" HTC) that is invoked from a web
page loaded into an MFC CHtmlView (WBC wrapper).

The page that attempts to load the HTC is generated by loading "about:blank"
into the WBC and then using IHTMLDocument2->write()/IHTMLDocument2->close()
to rewrite the source page. Both the HTML page and the HTC have a "mark of
the web" <!-- saved from url=(0014)about:internet -->".

If I write the HTML page to disk and then use Navigate2() to load it from
the file: URL, it loads and executes the Javascript in the HTC. If I DON'T
write to disk/read from disk into the WBC, I get:

Error: "Access is denied to file://<path to HTC file>
Code: 0
URL: about:blank

Any ideas on how to avoid this error and get the external HTC to load and
execute without writing the page referencing the HTC to the filesystem?

- jwallison



.



Relevant Pages

  • Using HTCs in design mode
    ... I noticed that when I load a HTML document that contains HTML ... Components (HTCs) into IE6, that the HTC elements disappear if I ... could this cause HTC to not render? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Using HTCs in design mode
    ... I noticed that when I load a HTML document that contains HTML ... Components (HTCs) into IE6, that the HTC elements disappear if I ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • XP SP2 and loading HTC - access denied
    ... I have an HTC that is invoked from a web ... page loaded into an MFC CHtmlView (WBC wrapper). ... The page that attempts to load the HTC is generated by loading "about:blank" ... it loads and executes the Javascript in the HTC. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: accessing a scripts tag (and attributes)
    ... custom properties on the script tag would make it easier for HTML ... designers to include functionality on the page. ... allows you access to the containing HTC tag (along with many other cool ...
    (comp.lang.javascript)