version.h

 /*****************************************************************************
* version.h file
*
* Written by Gary Webb
* Copyright September 26, 2000
*
* Use CVersionInfo to obtain information from the version resource of your
* application, or specify a valid path to another executable to obtain its
* version information.
*****************************************************************************/
#ifndef CVersionInfo_Class_File
#define CVersionInfo_Class_File

#include <windows.h>
#include <list>
using namespace std;
//---------------------------------------------------------------------------

class CVersionInfo
{
public:
    CVersionInfo(void);
    ~CVersionInfo(void);
    bool SetFilePath(LPCTSTR szPath);
    bool SetLanguage(int nLanguage);
    int GetLanguageCount(void);
    LPTSTR GetComments(void);
    LPTSTR GetCompanyName(void);
    LPTSTR GetFileDescription(void);
    LPTSTR GetFileVersion(void);
    LPTSTR GetInternalName(void);
    LPTSTR GetLegalCopyright(void);
    LPTSTR GetLegalTrademarks(void);
    LPTSTR GetOriginalFilename(void);
    LPTSTR GetProductName(void);
    LPTSTR GetProductVersion(void);
    LPTSTR GetPrivateBuild(void);
    LPTSTR GetSpecialBuild(void);
private:
    bool m_bValidPath;
    bool m_bVersionInfoExists;
    LPTSTR m_pszFilePath;
    int m_nLanguage;
    int m_nLangCount;
    list<LPTSTR> m_lstLangCode;
    bool GetLanguageCodes(void);
    LPTSTR GetData(LPCTSTR szData);
};

#endif CVersionInfo_Class_File

Project Homepage: