Run the Tank sample application on Windows
- Last Updated: June 9, 2022
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
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:
- Log on as a system administrator.
- Copy the %DLC%\oebuild\hlc\examples, %DLC%\oebuild\make, and %DLC%\oebuild\obj directories to your working directory.
- Set the environment variables for the
Ccompiler. For example, run the following command in aProenvwindow to set environment variables for Microsoft Visual Studio 2019:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars32.bat" - Change your current directory in the
Proenvwindow to <working_directory>\examples. - Compile the
.cfiles in <working_directory>\examplesby executing the following command:cl -c *.cAs a result, a
.objfile is generated for each.cfile in the directory. - Edit the
build_prohlc.linkfile in <working_directory>\maketo include the newly generated.objfiles. For example, change"./hlprodsp.obj"to"../examples/*.obj". - Change the current directory in the
Proenvwindow to %DLC%\oebuild\make. - Generate the
prohlc.dllfile by executing the following command:link @build_prohlc.linkprohlc.dllis generated in the current working directory. - Set the new environment variable
PROHLCto 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 - Change the working directory to
<working_directory>\examples. - Create an empty OpenEdge database
hlcdemoby executing the following command:prodb hlcdemo empty - Load the data required for the sample application by executing the
following
command:
prowin -db hlcdemo -1 -p hldemo.p - 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:
