Progress
External Program
Interfaces


Running the Sample Application On Windows

To verify that your HLC application is installed correctly, run the sample application by completing the following steps:

  1. Create a working directory, then go to it.
  2. 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.

  3. Copy the example HLC files to your working directory, as follows:
  4. copy %DLC%\probuild\hlc\examples\*.* 
    

  5. Create an empty database:
  6. prodb tankdb empty. 
    

  7. Load and run the Progress programs loaddb.p and initdb.p.
  8. Compile the C source files to create object files in your current directory:
  9. c tankdsp.c hlvcalc.c 
    

  10. Run the Progress PROBUILD EUC utility using tankdsp and hlvcalc as object files for the HLC application.
  11. See the Progress Client Deployment Guide for more information on the PROBUILD utility.

  12. Copy the .def and .res files to your current working directory:
  13. copy %DLC%\probuild\_prowin.* 
    

  14. Link your test HLC module using the link script PROBUILD generates:
  15. link @_prowin.lnk 
    

  16. Link in the resource files:
  17. rc -k _prowin.res 
    

  18. 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 © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095