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.
39 lines
642 B
C++
39 lines
642 B
C++
#pragma once
|
|
#include "pch.h"
|
|
//using namespace std;
|
|
class CLicense
|
|
{
|
|
public:
|
|
CLicense();
|
|
~CLicense();
|
|
bool Write(CString& outputFile);
|
|
bool Read(CString& inputFile);
|
|
int CrrectInfor(CString& inforFile);
|
|
public:
|
|
// 产品列表
|
|
CString m_Products;
|
|
// 版本号
|
|
CString m_Version;
|
|
// 工作单位
|
|
CString m_Company;
|
|
// 部门
|
|
CString m_Department;
|
|
// 用户名
|
|
CString m_UserName;
|
|
// 联系方式
|
|
CString m_Contact;
|
|
// 机器序列号
|
|
CString m_MachineInfo;
|
|
// 要写出的许可文件
|
|
CString m_LicenseFile;
|
|
|
|
// 起始日期
|
|
COleDateTime m_StartDate;
|
|
// 失效日期
|
|
COleDateTime m_ExpireDate;
|
|
// 是否限制日期
|
|
BOOL m_LimitDate;
|
|
BOOL m_UnlimitMachine;
|
|
};
|
|
|