Getting Started
Delphi 4
Make sure you have installed Upgrade Pack 3. In
Delphi-IDE choose menu Help->About. The version will tell you if
Upgrade Pack 3 is installed. If you have not installed Upgrade Pack 3 you
can download it from www.borland.com.
To install "Microsoft HTML Object Library"
correctly you will need to add following lines (case-sensitive) to the
ascii-file "tlibimp.sym" located in your Delphi\Bin-directory:
True
False
Unit
String
object
Otherwise the reserved words will be redefined in
mshtml_tlb.pas.
Next:
Choose from the menu Component->Import ActiveX Control.
Install the following:
Microsoft HTML Object Library
Microsoft Internet Controls
The files shdocvw_tlb.pas and mshtml_tlb.pas will be created and following
components are added to ActiveX-tab:
Webbrowser_V1
Webbrowser
Scriptlet
Remember to update the files when you upgrade your version
of Internet Explorer.
You are now ready to install EmbeddedWB and other
components from this website in Delphi 4.
Access Violations in Delphi 4
If you run applications with the Webbrowser Control inside Delphi 4
IDE you will must likely get an Access Violation before or later. The
problem gets worse after implementation of IDocHostUIHandler, as in
EmbeddedWB.
It seems to be related to a problem mentioned by Borland:
http://www.borland.com/devsupport/delphi/ti/TI820D.html
The best way to work around this problem is to disable
integrated debugging while running Webbrowser-applications inside Delphi 4
IDE. Choose from menu Tools->Debugger Options and
disable "Integrated Debugging". An alternative solution is to
choose Compile (Ctrl+F9) instead of Run (F9) and then run the compiled
project outside Delphi IDE.
This problem does not exist in Delphi 5.
|