File not found: MSHTML_TLB.dcu
When compiling a unit a "uses" clause generates the following error:
[Fatal Error] File not found: 'MSHTML_TLB.dcu'
The unit MSHTML_TLB provides access to a number of types that are frequently
used with TWebBrowser, for example IHTMLDocument2. However the unit is only
available after the Microsoft HTML Object Library has been imported - and
if it has not been imported then the compiler will generate this error.
Import the "Microsoft HTML Object Library":
- Start up Delphi.
- On the "Component" menu in the main toolbar select "Import ActiveX
- In the list box scroll and and select "Microsoft HTML Object Library".
The "Class names" should then list "TScriptlet".
- Click "Install..."
- Then click "OK" on the "Install" form that appears and "Yes" on
the confirm prompt.
These notes are believed to be correct for Delphi 6 (and
Seth Ferrante reports them to be correct for Delphi 7), and may apply to
other versions as well.
About the author: Brian Cryer
is a dedicated software developer and webmaster. For his day job he
develops websites and desktop applications as well as providing
IT services. He moonlights as a technical author and consultant.