LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

Setting Version Info values from within the source code

Hello. I want to set the version info variables from my software's source code. I know I can read them by using _TARGET_FILE_VERSION_ or _TARGET_PRODUCT_VERSION_ macros, but how do I actually write them?

Isn't there any way to alter Target Settings' Numeric Information/Text Information to take a value from a defined variable at compile time? Thank you.

0 项奖励
1 条消息(共 2 条)
3,871 次查看

Hi,

 

You may want to try out some of the options listed in this older post:

http://forums.ni.com/t5/LabWindows-CVI/Set-EXE-DLL-build-file-version-information-to-increment/td-p/...

 

Specifically, CVI_AppSetProjectVersionInfo function in order to set these values.

 

You also might want to refer to the Windows information for Version Resources, which can be found at:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058%28v=vs.85%29.aspx

 

If you are looking to change version after compile, there are online examples for creating a tool to do this. However, it may cause issues depending on the method and how the file versioning is implemented.

Evan See
National Instruments
0 项奖励
2 条消息(共 2 条)
3,843 次查看