From 7594f230924258de58ddce4f02e7705f0931e46f Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 2 Jan 2026 12:35:49 +0100 Subject: [PATCH] KeyGenerator 3.1a1 : - aggiunta gestione versione 31. --- KeyGenerator.cpp | 6 +++--- KeyGenerator.rc | Bin 31626 -> 31626 bytes KeyGenerator.vcxproj | 4 ++-- KeyGeneratorDlg.cpp | 19 ++++++++++++------- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/KeyGenerator.cpp b/KeyGenerator.cpp index 7b8f276..f9b3e2a 100644 --- a/KeyGenerator.cpp +++ b/KeyGenerator.cpp @@ -1,7 +1,7 @@ //---------------------------------------------------------------------------- -// EgalTech 2013-2024 +// EgalTech 2013-2025 //---------------------------------------------------------------------------- -// File : KeyGenerator.cpp Data : 16.01.24 Versione : 2.6a1 +// File : KeyGenerator.cpp Data : 02.01.26 Versione : 3.1a1 // Contenuto : Implementazione della classe applicazione generatore chiavi. // // @@ -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, 2701, 10) != KEY_OK) { + if ( VerifyKey( sKey, 823, 3101, 10) != KEY_OK) { m_nExitCode = 1 ; return FALSE ; } diff --git a/KeyGenerator.rc b/KeyGenerator.rc index b07d6f1a57dad911e719ec638b38fed18b5d801b..f3cec24bc3b502a0cb8b27a6f5c625640ce35d27 100644 GIT binary patch delta 122 zcmeDB&e-*xal-;%h1&DWi|nSo3_px}SMn~Y|g54x8#G6MxBGx|$T o&Ix?6*~Tk@5sS8iOp~Yhr6Fsbe9(RSV7fQw1j=av03;nIng9R* delta 130 zcmeDB&e-*xal-;%h1&DWi|nSo3_px}SMn~bKL54x8#vV#Q}lqLtd qicZc6e6iWaD}fP<)`Luwr}(8IYoC13ef#7I0SAyx*qjq6rv(5m<|pz1 diff --git a/KeyGenerator.vcxproj b/KeyGenerator.vcxproj index 91ebb62..7b21db1 100644 --- a/KeyGenerator.vcxproj +++ b/KeyGenerator.vcxproj @@ -63,7 +63,7 @@ Disabled WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) ProgramDatabase - stdcpp17 + stdcpp20 Windows @@ -95,7 +95,7 @@ AnySuitable Speed StreamingSIMDExtensions2 - stdcpp17 + stdcpp20 Windows diff --git a/KeyGeneratorDlg.cpp b/KeyGeneratorDlg.cpp index 7e97383..23663a2 100644 --- a/KeyGeneratorDlg.cpp +++ b/KeyGeneratorDlg.cpp @@ -1,7 +1,7 @@ //---------------------------------------------------------------------------- -// EgalTech 2013-2025 +// EgalTech 2013-2026 //---------------------------------------------------------------------------- -// File : KeyGeneratorDlg.cpp Data : 13.01.25 Versione : 2.7a1 +// File : KeyGeneratorDlg.cpp Data : 02.01.26 Versione : 3.1a1 // Contenuto : Implementazione della classe dialogo generatore chiavi. // // @@ -15,6 +15,7 @@ // 05.01.24 DS Aggiunta versione 26. // 05.10.24 DS Aggiunto Effector. // 13.01.25 DS Aggiunta versione 27. +// 02.01.26 DS Aggiunta versione 31. // //---------------------------------------------------------------------------- @@ -51,7 +52,7 @@ static const vector vsProd = { "9935" // EgtEngine } ; // altri valori : 463, 719, 975, 1487, 2255, 2511, 3535, 4559, 9679 (max 9999 e deve contenere i bit di 207) static const vector vsVer = { - "27", "26", "25", "24", "23", "22", "21", "19", "18", "16", "15" + "31", "27", "26", "25", "24", "23", "22", "21", "19", "18", "16", "15" } ; static const vector vsSubVer = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "" @@ -343,8 +344,10 @@ CKeyGeneratorDlg::LoadFile( const char* szFile) int nLev = GetPrivateProfileInt( sSec.c_str(), "Lev", 0, szFile) ; ((CComboBox*)GetDlgItem( IDC_LEV))->SetCurSel( nLev - 1) ; int nExpTime = GetPrivateProfileInt( sSec.c_str(), "ExpDays", 0, szFile) ; - if ( nExpTime != 0) - ((CDateTimeCtrl*)GetDlgItem( IDC_EXPIRATION))->SetTime( &CTime( unsigned( nExpTime) * 24 * 3600)) ; + if ( nExpTime != 0) { + CTime time( unsigned( nExpTime) * 24 * 3600) ; + ((CDateTimeCtrl*)GetDlgItem( IDC_EXPIRATION))->SetTime( &time) ; + } int nOpt1 = GetPrivateProfileInt( sSec.c_str(), "Opt1", 0, szFile) ; for ( int i = IDC_CHECK01, j = 0 ; i <= IDC_CHECK16 ; ++ i, ++ j) { if ( ( nOpt1 & ( 1 << j)) != 0) @@ -361,8 +364,10 @@ CKeyGeneratorDlg::LoadFile( const char* szFile) } // check non ancora inseriti nel dialogo int nOptExpTime = GetPrivateProfileInt( sSec.c_str(), "OptExpDays", 0, szFile) ; - if ( nOptExpTime != 0) - ((CDateTimeCtrl*)GetDlgItem( IDC_OPT_EXPIR))->SetTime( &CTime( unsigned( nOptExpTime) * 24 * 3600)) ; + if ( nOptExpTime != 0) { + CTime time( unsigned( nOptExpTime) * 24 * 3600) ; + ((CDateTimeCtrl*)GetDlgItem( IDC_OPT_EXPIR))->SetTime( &time) ; + } return true ; }