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":
- Start up Delphi.
- On the "Component" menu in the main
toolbar select "Import ActiveX Control..."
- 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.
|