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

How to extract version info. from resuorce file?

wu_internet
Beginner
551 Views
I've got a Fortran Dll file, which hasversion information by defining in the resource file (.rc) or a manually defined separate version information fileand included by the .rc file. After compiling, the information will be available by showing the file property. Due to that I need to use the version information in the Dll project itself, I was defining at another place for these version information. The trouble is I have to update two places when I need to change the version information. This is headache...
Now, I want to extract information from the .rc file, however, there is "#define .." syntax which can not be recognised by the Fortran. I am wondering is there anywhere that I only need to define once about these information, and I can get it in both resource and project files. Anyone ideas, please give me a hand.
Regards,
David.
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
551 Views
Sorry, I don't follow you. .rc file is one place --what's the other?
The code for retrieving version info from an executable can be found here, if that's what you're looking for.
Jugoslav
0 Kudos
Reply