Cry about...
Delphi Troubleshooting

File not found: SHDocVw_TLB.dcu


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

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


The unit SHDocVw_TLB provides access the TWebBrowser control, 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.


To make the SHDocVw_TLB unit available follow the notes on "How to install TWebBrowser".

These notes are believed to be correct for Delphi 6 and Delphi 7, but 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.