LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
tstanley

Add a library function that can retrieve version information about an executable/DLL file.

Status: Under Consideration
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)

1 Comment
LuisG
NI Employee (retired)
Status changed to: Under Consideration
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.