Getting Started Delphi 5
Make sure you have installed Update Pack 1 for Delphi 5 before continuing. Open from the menu Help->About. "Update Pack 1" should be mentioned after version number. Otherwise install the update pack before continuing. 1. Select from the menu Component>Install Packages... 2. Select Internet Explorer Components in the Design package list. 3. Press "Remove" and next "Yes" to confirm that you want to remove dclie50.bpl from the design package list. 4. Press "Ok" the close the Install packages dialog. 5. Select from the menu Project->Import Type Library. 6. Select Microsoft Internet Controls from the List:
7. In the bottom of the dialog you can select "Create Component Wrapper". It will create additional 4 components on the Servers-tab in the component palette: TInternetExplorer, TShellWindows, TShellUIHelper, TShellFavoritesNameSpace. They are useful for automating Internet Explorer, but they have serious bugs in Delphi 5 (even with Update Pack 1) and you will must likely not be able to use them without at least turning off internel debugging in Delphi IDE. In the section Additional components I will show you how to install components with the same functionality without the annoying bugs. I suggest you deselect "Create component wrapper".
8. On the Install-dialog choose "Into new package" and give a filename and description:
9. Press "OK" and "Yes" to confirm package IE55.bpl will be built then installed. Two components are now installed on the Component palette:
10. Close the IE55 package window and confirm to save it. 11. Select from the menu Project->Import Type Library.... 12. This time you select Microsoft HTML Object Library from the List. I again suggest you deselect "create component wrapper". 13. Choose to install it to existing package "IE55.DPK" 14. Confirm to rebuild IE55.bpl. 15 A third component is added: TScriptlet 16. Close IE55 package window and confirm to save IE55.DPK.
troubleshooting If you have created components using the "standard" version of the Webbrowser-component, you will need to recompile this components and change the unit-name in the USES clause of the interface section in the code from MSHTML to MSHTML_TLB and from SHDOCVW to SHDOCVW_TLB. Remove the dependancy of vclie50.dcp when you recompile the package where the component is stored. IE55.dcp will instead be added as required. You are now ready to install EmbeddedWB and other components from this website in Delphi 5. You can add these components to IE55.dpk or put them in a seperate package.
|