Getting File Version Information

Publication: C++ Builder Developer's Journal
Issue: Volume 4, Number 12, December 2000

This one page article showed the reader how to use the Windows API to retrieve file version information and use it in their application.

Under the Project Options dialog box in the C++Builder IDE, you will find the Version Info page. This is where you specify the file version information, including the product name, product version number, and file description to name just a few. This information is then displayed when a user right clicks on the application in Windows Explorer and chooses Properties from the context menu. This is all well and good, but C++Builder does not come with a component to actually retrieve this version information from within your program. This article will explain how to extract that information. The resulting information can then be displayed in an About dialog box.

There is a version of this article available online.