Getting File Version Information

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.

A HTML version of this article is available here

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


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.