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

Access resource VS_VERSION_INFO from code?

mrvogt
Novice
764 Views

I use VS_VERSION_INFO to stamp my EXE with a version number. Is there a way to access that resource file's version information in code so I can write the used EXE version to the output?

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
756 Views

Yes. The Windows API routine GetFIleVersionInfo (declared in Intel Fortran supplied module VERSION) retrieves this information from the EXE or DLL you specify. To get the path to the currently running EXE, use GetModuleFileName (KERNEL32) and pass NULL as the hModule argument.

mrvogt
Novice
745 Views
0 Kudos
Reply