Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## Running the sample application in Windows

> To verify that your HLC application is installed correctly, run the sample application.

> | To run the sample application:

> 1. Create a working directory, then go to it.

> Note: Before you develop your own applications, move `c.bat` to a directory that is in your path and move `hlc.h` to your include file directory or current working directory.

> 2. Copy the example HLC files to your working directory, as follows:

>     copy %DLC%\oebuild\hlc\examples\*.*

> Create an empty database:

>     prodb tankdb empty.

> 1. Load and run the Progress programs `loaddb.p` and `initdb.p`.

> 2. Compile the C source files to create object files in your current directory:

>     c tankdsp.c hlvcalc.c

> 3. Run the OEBuild utility using `tankdsp` and `hlvcalc` as object files for the HLC application.

> For more information on the OEBuild utility, see Building OpenEdge 4GL Executables at `www.progress.com/products/documentation/start_openedge10/index.ssp`.

> 4. Copy the `.def` and `.res` files to your current working directory:

>     copy %DLC%\oebuild\_prowin.*

> 5. Link your test HLC module using the link script OEBuild generates:

>     link @_prowin.lnk

> 6. Link in the resource files:

>     rc -k _prowin.res

> 7. Run `hltank.p`.

> After you run `hltank.p`, verify that the results you obtain are correct by comparing them to the following results that list the input values for radius, tlength, and depth, and the correct output for tavail:

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095