Executable file version information

This class reads version information from executable file header. It is useful because any changes made to the VS_VERSION_INFO in the resource editor  automatically update associated controls.

VersionInfo1.gif (7612 bytes)

CExecImageVersion class have following methods:

CString GetSpecialBuild();
CString GetPrivateBuild();
CString GetLegalTrademarks();
CString GetInternalName();
CString GetFileVersion();
CString GetFileDescription();
CString GetComments();
CString GetCopyright();
CString GetCompanyName();
CString GetProductVersion();
CString GetProductName();
Declare instance of this class:

CExecImageVersion ver;
OR

CExecImageVersion ver("yourexe.exe");
m_strCompany = ver.GetCompanyName(); m_strComment = ver.GetComments(); m_strCopy = ver.GetCopyright(); m_strFileDescr = ver.GetFileDescription(); m_strFileVer = ver.GetFileVersion(); m_strIntName = ver.GetInternalName(); m_strPrivBuild = ver.GetPrivateBuild(); m_strProductName = ver.GetProductName(); m_strProductVer = ver.GetProductVersion(); m_strSpecialBuild = ver.GetSpecialBuild(); m_strTrademarks = ver.GetLegalTrademarks();

Download demo project - 37 KB

Download source - 3 KB

Date Last Updated: April 4, 1999



Comments

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: July 22, 2014 In this WhatWorks analysis, John Pescatore examines a use case where end users had local administrative rights on their PCs and it had gotten out of hand for this Fortune 500 Energy and Utilities company. The compelling event that prompted the company to reexamine this situation was the migration to Windows 7. In Windows XP, a custom tool that allowed users one of three levels of administrative rights to their workstations would need to be replaced during the Windows …

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds