Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29417 Discussions

Auto update of file version number in a *.rc resource file

Greg_T_
Valued Contributor I
3,052 Views

Hello,

I have a .rc resource file in a Fortran DLL project where I set information like the version number.  Is there a way to automatically increment part of the file version number with each build?  I currently manually edit the file version number, which is not onerous, but automation would be welcome.  It looks like the .rc file is a text file that could perhaps be modified by a script, unless that would corrupt it.  Thanks for any advice.

Regards,
Greg

0 Kudos
1 Solution
Steven_L_Intel1
Employee
3,052 Views

Maybe this will help you.

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
3,053 Views

Maybe this will help you.

0 Kudos
Greg_T_
Valued Contributor I
3,052 Views

Hi Steve,

Thanks for the link; it was much better information than my web searches found.  It confirms that a script (macro) is needed for the automatic version incrementing to modify the .rc file.

Regards,
Greg

0 Kudos
Steven_L_Intel1
Employee
3,052 Views

Right - I don't know of a built-in way to do this. What our projects do is put the version resource in a separate file and #include it in the main .rc. Then it's pretty easy to increment it as needed.

0 Kudos
Reply