LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use "build number" in program

Hallo users,
in many professional software one finds a "build number" which identifies the release version of a program. My questions regarding this number are:
- How do these numbers work? These build numbers look like 6.05.1043 or something like that.
- How could I probably use such a number in my program in such a way, that e.g. the build number is automatically displayed in the main panel's title bar? This would allow to easily distinguish between different releases of the program. That would mean that LabWindows would be somehow able to create such a build number and would automatically increase this number after each compiler run.

Thanks
Thomas
0 Kudos
Message 1 of 2
(2,852 Views)
In the Project window, go to Build >> Target Settings >> Version Info, and enter the desired version in the format shown (1,0,0,0). You will need to update this manually whenever you create a new version.
To read the version info, you can use the Windows SDK function GetFileVersionInfo. Look at the sample project ..\samples\sdk\verinfo\verinfo.prj that ships with CVI. If you want to put the version info in the title bar, use SetPanelAttribute to set ATTR_TITLE.
Message 2 of 2
(2,852 Views)