You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
780 B
C++
34 lines
780 B
C++
/**
|
|
* @file Utility.h
|
|
* @brief 常用函数的集合、都为静态函数
|
|
* @author
|
|
* @time
|
|
*/
|
|
#pragma once
|
|
|
|
class AFX_EXT_CLASS CUtility
|
|
{
|
|
public:
|
|
CUtility(void);
|
|
~CUtility(void);
|
|
|
|
/** @brief 获取唯一标识GUID */
|
|
static CString GetGUID();
|
|
|
|
/** @brief 加载字符串资源 */
|
|
static CString LoadResourceString(UINT nID);
|
|
|
|
/** @brief 将位图转换为CImagerList */
|
|
static BOOL CreateImageList(CImageList& il, UINT nID);
|
|
|
|
/** @brief 获取软件版本号函数 */
|
|
static CString GetVersion();
|
|
|
|
static int GetMajorVersion(const CString& strVersion); ///< 获取主版本号
|
|
static int GetMinorVersion(const CString& strVersion); ///< 获取子版本号
|
|
static int GetRevision(const CString& strVersion); ///< 获取阶段版本号
|
|
|
|
private:
|
|
static CString m_strVersion; ///< 软件全局版本号
|
|
};
|