Solved

Extracting a file version

Posted on 1998-08-03
2
271 Views
Last Modified: 2013-11-19
I have a DLL that contains its own About box.  I would like that box to display its current version, based on the value I enter into the VS_VERSION resource.  How can I extract that information?  Furthermore, how can I extract the filename of the DLL when it is running, instead of hard-coding the name?
0
Comment
Question by:DenMan
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 40 total points
Comment Utility
To extract any resource, you can use LoadResource() to get a pointer to the information. Then you can use pointer arithmetic and parsing to get at the correct information. Alternatively, you can use VerQueryFileEx() to get the information.

To extract any module name, you can use GetModuleFileName() and pass the HINSTANCE of the DLL.
0
 

Author Comment

by:DenMan
Comment Utility
I am using MS Visual C++ 5.0--I couldn't find any reference to VerQueryFileEx() in the online help.  Where can I find more information on that function?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 64
Generic progress indicator 6 109
Define unique primary key 9 81
lucky13 challenge 11 111
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now