Lazarus: Unit SHDocVw not available
Question by Guest | 2014-08-11 at 20:17
I would like to port some lines of code from Delphi to Lazarus and at the moment, I am failing because Lazarus does not know the unit SHDocVw I need.
Specifically, it concerns the types IShellWindows, IDispatch and IWebBrowser2 that are obviously defined in that unit.
My research has shown, that there is a DLL with the same name (shdocvw.dll) in the Windows directory C:\Windows\System32. Probably, this DLL is containing my required functions.
How is it possible to make those functions available also in Lazarus?
Related Topics
Delphi: Define global variables
Tip | 0 Comments
Delphi/Lazarus: How to set up a Link to a Website in an Application
Tutorial | 0 Comments
Lazarus: Detect Operating System (Compiler Switch)
Tutorial | 0 Comments
Delphi/Lazarus: Catch CTRL+C in Memo or Edit and Change Clipboard Content
Tutorial | 0 Comments
Delphi: Multiline Caption for TLabel (at Run Time and Design Time)
Tutorial | 1 Comment
Delphi/Lazarus: 3 Ways to round a Number to X Decimal Places
Tutorial | 7 Comments
Delphi/Lazarus: Show and Change Printers
Info | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Go to the Lazarus menu "Packages > Install/Uninstall Packages" and install the package "LazActiveX" there.
After that, in the menu "Tools > Import Type Library", you can find a function to integrate a Windows DLL.
When using this function, Lazarus is creating an input interface unit for the DLL (for example SHDocVw_1_1_TLB). If you include this unit into your project, IShellWindows, IDispatch, IWebBrowser2 and Co should be available.
2014-08-13 at 13:23