Browse Source

Generate license code through hard disk partition identification code

dongjunhong 8 months ago
parent
commit
4350cfc678
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/common/common/license_local/README.md

+ 14 - 0
src/common/common/license_local/README.md

@@ -0,0 +1,14 @@
+在pro文件中导入目录和模块
+INCLUDEPATH += $$PWD/../../common/common/license_local
+include($$PWD/../../common/common/license_local/adclicense.pri)
+
+在主程序中导入头文件
+#include <adclicense.h>
+
+调用函数获取返回值
+ADCLicenseServ adclicense;
+int checklicense=adclicense.CheckLincese();
+if (checklicense!=1)
+{
+return a.exec();
+}