diff --git a/KeyGenerator.cpp b/KeyGenerator.cpp index 0f82202..8d064b9 100644 --- a/KeyGenerator.cpp +++ b/KeyGenerator.cpp @@ -85,7 +85,7 @@ CKeyGeneratorApp::InitInstance( void) // verifico la protezione SetLockType( KEY_LOCK_TYPE_HW) ; string sKey = GetPrivateProfileStringUtf8( "General", "Key", "", m_pszProfileName) ; - if ( VerifyKey( sKey, 823, 2301, 10) != KEY_OK) { + if ( VerifyKey( sKey, 823, 2305, 10) != KEY_OK) { m_nExitCode = 1 ; return FALSE ; } diff --git a/KeyGenerator.rc b/KeyGenerator.rc index 505a224..85cefe6 100644 Binary files a/KeyGenerator.rc and b/KeyGenerator.rc differ diff --git a/KeyGeneratorDlg.cpp b/KeyGeneratorDlg.cpp index 42a98fc..bee9c67 100644 --- a/KeyGeneratorDlg.cpp +++ b/KeyGeneratorDlg.cpp @@ -1,13 +1,14 @@ //---------------------------------------------------------------------------- -// EgalTech 2013-2019 +// EgalTech 2013-2021 //---------------------------------------------------------------------------- -// File : KeyGeneratorDlg.cpp Data : 08.05.19 Versione : 2.1e1 +// File : KeyGeneratorDlg.cpp Data : 15.05.21 Versione : 2.3e2 // Contenuto : Implementazione della classe dialogo generatore chiavi. // // // // Modifiche : 11.09.14 DS Creazione modulo. // 08.05.19 DS Portate Opzioni2 a 24. +// 15.05.21 DS Aggiunto EgtBeamWall. // //---------------------------------------------------------------------------- @@ -35,9 +36,9 @@ using namespace std ; static const vector vsProd = { "207", // librerie base "823", // generatore di licenze - "1231", // vecchie librerie base + "1231", // SarmaxWall (vecchie librerie base) "3279", // EgtCAM5 - "5327", // SarmaxWall + "5327", // EgtBeamWall "9423" // OmagCUT } ; // altri valori : 463, 975, 1487, 2511, 3535, 4559, 5583 (max 9999 e deve contenere i bit di 207) static const vector vsVer = { @@ -449,7 +450,7 @@ CKeyGeneratorDlg::OnGenerate( void) WritePrivateProfileInt( "Licence", "OptExpDays", nOptDays, AfxGetApp()->m_pszProfileName) ; // verifico la protezione string sPKey = GetPrivateProfileStringUtf8( "General", "Key", "", AfxGetApp()->m_pszProfileName) ; - if ( VerifyKey( sPKey, 823, 16, 10) != KEY_OK) + if ( VerifyKey( sPKey, 823, 2305, 10) != KEY_OK) return ; // calcolo la chiave if ( ! mKey.CalcKey()) {