Run the Tank sample application shipped with OpenEdge to verify HLC is installed correctly on Windows.

Perform the following steps to run the Tank sample application:

  1. Log on as a system administrator.
  2. Copy the %DLC%\oebuild\hlc\examples, %DLC%\oebuild\make, and %DLC%\oebuild\obj directories to your working directory.
  3. Set the environment variables for the C compiler. For example, run the following command in a Proenv window to set environment variables for Microsoft Visual Studio:
    "C:\Program Files (x86)\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat"
    
  4. Change your current directory in the Proenv window to <working_directory>\examples.
  5. Compile the .c files in <working_directory>\examples by executing the following command:
    cl -c *.c

    As a result, a .obj file is generated for each .c file in the directory.

  6. Edit the build_prohlc.link file in <working_directory>\make to include the newly generated .obj files. For example, change "./hlprodsp.obj" to "../examples/*.obj".
  7. Change the current directory in the Proenv window to %DLC%\oebuild\make.
  8. Generate the prohlc.dll file by executing the following command:
    link @build_prohlc.link

    prohlc.dll is generated in the current working directory.

  9. Set the new environment variable PROHLC to the full path of the newly built HLC library (<working_directory>\make\prohlc.dll) by executing the following command:
    set PROHLC=<working_directory>\make\prohlc.dll
  10. Change the working directory to <working_directory>\examples.
  11. Create an empty OpenEdge database hlcdemo by executing the following command:
    prodb hlcdemo empty
  12. Load the data required for the sample application by executing the following command:
    prowin -db hlcdemo -1 -p hldemo.p
  13. Finally, test the sample application by executing the following command:
    prowin -db hlcdemo -1 -p hltank.p

If you see the following output, it means that the sample application is working properly: