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

  • As mobile devices have pushed their way into the enterprise, they have brought cloud apps along with them. This app explosion means account passwords are multiplying, which exposes corporate data and leads to help desk calls from frustrated users. This paper will discover how IT can improve user productivity, gain visibility and control over SaaS and mobile apps, and stop password sprawl. Download this white paper to learn: How you can leverage your existing AD to manage app access. Key capabilities to …

  • The explosion in mobile devices and applications has generated a great deal of interest in APIs. Today's businesses are under increased pressure to make it easy to build apps, supply tools to help developers work more quickly, and deploy operational analytics so they can track users, developers, application performance, and more. Apigee Edge provides comprehensive API delivery tools and both operational and business-level analytics in an integrated platform. It is available as on-premise software or through …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds