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:
Installing the GeoCalc COM control in the development
environment.
Adding a reference to the GeoCalc COM control
in your project.
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:
- Create a new Standard EXE project.
- Select Project->References…
- 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.
- Compose and build your application.
Borland Delphi 7
- Create a new Application.
- Select Tools->Environment Options...
- In the Environment Options dialog, select the "Library"
tab.
- 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.
- Add “GeoCalcCOM_TLB” to the “uses” section of all
units that reference GeoCalcCOM.
- Compose and build your application.