From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
The version info function is a good suggestion and that's still under consideration.
In the meanwhile, for something like the About box use case that you mentioned, you can use the _TARGET_FILE_VERSION_ and _TARGET_PRODUCT_VERSION_ predefined compiler macros, which are tied to the versions which you set in Build>>Target Settings>>Version Info dialog. You can preview their values in Options>>Build Options>>Predefined Macros.
It would be nice if there was a library function to retrieve version information about an executable or DLL file. I know this can be done through the SDK, but it's somewhat inconvienent.
Along the same lines, it would be nice if there was a library function to retrieve the version information about the currently running process. (this would be great for making "About" panels in programs)
The version info function is a good suggestion and that's still under consideration.
In the meanwhile, for something like the About box use case that you mentioned, you can use the _TARGET_FILE_VERSION_ and _TARGET_PRODUCT_VERSION_ predefined compiler macros, which are tied to the versions which you set in Build>>Target Settings>>Version Info dialog. You can preview their values in Options>>Build Options>>Predefined Macros.