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 github.com/BerndGabriel/HtmlViewer.
  3. This demo uses the Internet Direct Components (Indy) Version 10. Versions 8 or 9 of Indy are not suitable for this demo.

    Indy Version 10 comes with both Delphi 2007, 2009, XE, and XE2. For other Delphi versions, Indy Version 10 may be downloaded (no charge) from http://www.indyproject.org/.

  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 latest version as testing is usually done with that one and older versions often have security flaws. These DLLs should be placed in the same directory as your executable or the System32 directory for your program's architecture.

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).

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.