NTIA / itm

The Irregular Terrain Model (ITM)
Other
44 stars 25 forks source link

Fix DLL and driver versions unset when running `ITMDRvr.exe -v` #18

Closed aromanielloNTIA closed 3 months ago

aromanielloNTIA commented 6 months ago

Resolves #17

This issue was caused because the call to the Version() function specified by the -v flag occurs before the DLL is loaded. This change loads the DLL up front, so that version information is populated before the call to Version().

I also changed the name of drvrVerDrvr to drvrVerPatch, to be consistent with semantic versioning major/minor/patch version numbers. I also added the drvrVerPatch to be printed in the -v message (it was already printed to the output file)

Example output:

*******************************************************
Institute for Telecommunications Sciences - Boulder, CO
        ITM Driver Version: 1.4.0
        ITM DLL Version: 1.4
        Time: Wed May  8 17:24:33 2024
*******************************************************