ELC 3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef EZ_APPLICATION_LICENCE_DISABLE
|
||||
|
||||
//#define LINUX 1
|
||||
#define WINDOWS 1
|
||||
#define LINUX 1
|
||||
//#define WINDOWS 1
|
||||
|
||||
#include "licenceReader.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/// @param argc
|
||||
/// @param argv parametry pro generování licence
|
||||
/// @return
|
||||
int main8()
|
||||
int main()
|
||||
{
|
||||
// buffer,850client,104client, 104server, web
|
||||
// kouknout na unikatní klíc pro linux (native uid, i openssl neco má)
|
||||
@@ -32,12 +32,10 @@ int main8()
|
||||
LicenceReader licenceReaderELC3{};
|
||||
if (licenceReaderELC3.initread(3, initStructure)) // iniciacni nacteni
|
||||
{
|
||||
LicenceELC3Item info; // podle ELC a kompatibility určit strukuru (LicenceInfo11, LicenceInfo21, LicenceInfo31)
|
||||
LicenceELC3Item info; // podle ELC a kompatibility určit strukuru (LicenceInfo1, LicenceInfo2, LicenceInfo3)
|
||||
// if ()
|
||||
int protocolId = 4;
|
||||
cout << "název licenčního souboru: " << licenceReaderELC3.licInfo.licenceFileName << "\n";
|
||||
cout << "cesta k licenčnímu souboru: " << licenceReaderELC3.licInfo.licenceFilePath << "\n";
|
||||
|
||||
|
||||
if (licenceReaderELC3.getLicenceItemInfo(protocolId, &info))
|
||||
{
|
||||
cout << "Pocet licencních bodu pro " << info.protocolId << ": " << info.dataPointsCount << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user