Compiling the Demo Program

Compiling The Demo Program

To compile your own version of the FrameBrowzerId program for study or modification, the following is required:

  1. The source code for the demo program which is included in this package.

  2. If you have not already done so, download and install the THtmlViewer, TFrameViewer, and TFrameBrowser HTML Components. This package may be obtained from http://www.pbear.com/.

  3. This demo uses the Internet Direct Components (Indy) Version 9. Versions 8 or 10 of Indy are not suitable for this demo.

    Indy Version 9 comes with both Delphi 7, Delphi 2005, and Delphi 2006. For other Delphi versions, Indy Version 9 may be downloaded (no charge) from http://www.nevrona.com/Indy/.

  4. For the optional Secure Socket Layer (SSL) support, the OpenSourceSSL DLLs should be downloaded from http://indy.fulgan.com/SSL/. Be sure and download the 0.9.6g version as testing has been done with that version. These DLLs should be placed in the System32 directory.

Compile Time Options

Depending on which options are selected, the following Defines should be entered in the Project|Options dialog, Directories/Conditionals tab, Conditional Defines section:

UseSSL Enables the OpenSourceSSL support (https).
Quirk Quirk makes changes which simulate some of the quirks of other browsers. HTML found online sometimes expects these quirks.

Debugging

Both Indy and TFrameBrowser use exception handling as part of normal coding practice so exceptions don't necessarily indicate a problem. However, exceptions can be quite disconcerting when running the application from the IDE. This is especially true when Socket timeout exceptions start cascading after the IDE stops for another exception. For this reason, it's a good idea to turn off Delphi's "Break on Exception" option or at least specify that the following exceptions be ignored:

EConvertError
EIdConnClosedGracefully
EIdSocketError
EIdHTTPProtocolException

See Tools|Debugger Options|Language Exceptions for making these changes.