Compile your Delphi application

This procedure describes how to compile Delphi applications with the UFT One agent.

For details about when to pre-compile your Delphi application, see Prerequisites.

Basic compilation steps

Compile your Delphi application as follows:

  1. Add the <UFT One Installation folder>\dat\Extensibility\Delphi folder to your Delphi project search path, or copy the contents of the <UFT One Installation folder>\dat\Extensibility\Delphi folder to your project folder.

  2. Add MicDelphiAgent to the Uses section of your application's project file (project.dpr) as shown in the example below:

    program flight;
    uses
    	MicDelphiAgent, 
    	Forms, 
    	Windows;
    ($R*.RES)
    begin
    	Application.Initialize
    	Application.Title :='Flight Reservation';
    	Application.Run;
    end.
  3. Compile your Delphi project.

  4. If your application includes the TwwDBGrid from InfoPower, continue with Configure Support for TwwDBGrid.

Back to top

Configure Support for TwwDBGrid

If your application includes the TwwDBGrid from InfoPower, you must add support for this grid.

Do the following:

  1. Add MicWWSupport to the Uses section of your application's project file (project.dpr) after MicDelphiAgent, as shown in the example below:

    program flight;
    uses
    	MicDelphiAgent, 
    	MicWWSupport,
    	Forms, 
    	Windows;
    ($R*.RES)
    begin
    	Application.Initialize
    	Application.Title :='Flight Reservation';
    	Application.Run;
    end.
  2. Recompile your application.

Back to top

See also: