Lesson 2: Configuring Your Development Environment

Overview

In order to use an integrated development environment (IDE) to build an application that uses GeoCalc, some settings in the IDE must be adjusted.  This generally consists of three steps:

  1. Installing the GeoCalc COM control in the development environment.

  2. Adding a reference to the GeoCalc COM control in your project.

  3. Re-building the project, so that the updated settings are applied to the project

Some environments also require the adjustment of other settings.  Below, you can find specific instructions for configuring the following environments:

 

Microsoft Visual Basic 6:

  1. Create a new Standard EXE project.
  2. Select Project->References…
  3. In the References dialog, click the Browse button and browse to GeoCalcCOM.dll (by default this will be located in c:\bmg\GeoCalcCOM\redist\).  Open this file and click OK in the References dialog.
  4. Compose and build your application.

 

Borland Delphi 7

  1. Create a new Application.
  2. Select Tools->Environment Options...
  3. In the Environment Options dialog, select the "Library" tab.
  4. Add the path to GeoCalcCOM_TLB.pas to the "Library path" field.  This file can be generated by Delphi, but we recommend that you use the version that was shipped with GeoCalc.  By default, this file will be installed to c:\bmg\inc.
  5. Add “GeoCalcCOM_TLB” to the “uses” section of all units that reference GeoCalcCOM.
  6. Compose and build your application.