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

  • Not long ago, the biggest concern when considering moving workloads to the cloud was security. Today, the main obstacle to cloud adoption is different but familiar: the pain of migrating data. But, migrating data doesn't have to be painful. Purpose-built tools enable efficient data migration without downtime or the risks for data loss. This eBook summarizes the major pain points for IT pros tasked with performing migrations, breaks down the flaws in traditional approaches, and illustrates how modern tools help …

  • In this highly valued report, you'll learn the results of "The Forrester Wave™: Hybrid Integration For Enterprises, Q4 2016" extensive research of the top Hybrid Integration Solutions, including each product's overall ranking, specific capabilities and strengths and weaknesses.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date