- 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
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