- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page