⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vmversioninfo.h

📁 TOOL (Tiny Object Oriented Language) is an easily-embedded, object-oriented, C++-like-language inter
💻 H
字号:
#ifndef VM_VERSIONINFO_H_INCLUDED
#define VM_VERSIONINFO_H_INCLUDED
/*****************************************************************************/
/*                              HEADER FILE                                  */
/*****************************************************************************/
/*
       $Archive: $

      $Revision: $
          $Date: $
        $Author: $

    Description: Declaration of the class Definition of a class which makes 
                 getting version info a cake walk
 
                 Project must be linked with VERSION.LIB

                      TOOL And XML FORMS License
                      ==========================

                      Except where otherwise noted, all of the documentation 
                      and software included in the TOOL package is 
                      copyrighted by Michael Swartzendruber.

                      Copyright (C) 2005 Michael John Swartzendruber. 
                      All rights reserved.

                      Access to this code, whether intentional or accidental,
                      does NOT IMPLY any transfer of rights.

                      This software is provided "as-is," without any express 
                      or implied warranty. In no event shall the author be held
                      liable for any damages arising from the use of this software.

                      Permission is granted to anyone to use this software for 
                      any purpose, including commercial applications, and to 
                      alter and redistribute it, provided that the following 
                      conditions are met:

                      1. All redistributions of source code files must retain 
                         all copyright notices that are currently in place, 
                         and this list of conditions without modification.

                      2. The origin of this software must not be misrepresented;
                         you must not claim that you wrote the original software.

                      3. If you use this software in another product, an acknowledgment
                         in the product documentation would be appreciated but is
                         not required.

                      4. Modified versions in source or binary form must be plainly 
                         marked as such, and must not be misrepresented as being 
                         the original software.
*/
/*****************************************************************************/

#include "VMString.h"

#pragma comment( lib, "version.lib" )

class VMVersionInfo
{
public:
  // various ctors
  //
	VMVersionInfo();
	VMVersionInfo( HMODULE hModule );
	VMVersionInfo( LPTSTR  pchFilename );

	~VMVersionInfo ();

public:
    // member data accessors
    //
    LPCTSTR GetVersionInfo( void ) const
    {   return( (LPCTSTR)m_oVersionInfo ); };

    LPCTSTR GetFileVersion( void ) const
    {   return( (LPCTSTR)m_oFileVersion ); };
    
    LPCTSTR GetProductVersion( void ) const
    {   return( (LPCTSTR)m_oProductVersion ); };

    LPCTSTR GetCompanyName( void ) const
    {   return( (LPCTSTR)m_oCompanyName ); };

    LPCTSTR GetProductName( void ) const
    {   return( (LPCTSTR)m_oProductName ); };

    LPCTSTR GetFileDescription( void ) const
    {   return( (LPCTSTR)m_oFileDescription ); };

    LPCTSTR GetCopyrightInfo( void ) const
    {   return( (LPCTSTR)m_oCopyright ); };

    LPCTSTR GetTrademarkInfo( void ) const
    {   return( (LPCTSTR)m_oTrademarks ); };

    LPCTSTR GetInternalName( void ) const
    {   return( (LPCTSTR)m_oInternalName ); };

    LPCTSTR GetOriginalFileName( void ) const
    {   return( (LPCTSTR)m_oOriginalFileName ); };

    LPCTSTR GetFileComments( void ) const
    {   return( (LPCTSTR)m_oComments ); };
    
    LPCTSTR GetPrivateBuildInfo( void ) const
    {   return( (LPCTSTR)m_oPrivateBuild ); };

    LPCTSTR GetSpecialBuildInfo( void ) const
    {   return( (LPCTSTR)m_oSpecialBuild ); };


protected:
	void GetVersionInfo( LPTSTR  pchFilename );
	void GetVersionInfo( HMODULE hModule );

private:
	VMString m_oVersionInfo;
	VMString m_oFileVersion;
	VMString m_oProductVersion;
  VMString m_oProductName;
  VMString m_oCompanyName;
  VMString m_oFileDescription;
  VMString m_oCopyright;
  VMString m_oTrademarks;
  VMString m_oInternalName;
  VMString m_oOriginalFileName;
  VMString m_oComments;
  VMString m_oPrivateBuild;
  VMString m_oSpecialBuild;
};

#endif

/*****************************************************************************/
/* Check-in history */
/*
 *$Log: $
*/
/*****************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -