Cry about...
Delphi Troubleshooting


File not found: MSHTML_TLB.dcu


Symptom:

When compiling a unit a "uses" clause generates the following error:

[Fatal Error] File not found: 'MSHTML_TLB.dcu'

Cause:

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.

Remedy:

Import the "Microsoft HTML Object Library":

  1. Start up Delphi.
  2. On the "Component" menu in the main toolbar select "Import ActiveX Control..."
  3. In the list box scroll and and select "Microsoft HTML Object Library".
    The "Class names" should then list "TScriptlet".
  4. Click "Install..."
  5. 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: 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.