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 b07d6f1..f3cec24 100644
Binary files a/KeyGenerator.rc and b/KeyGenerator.rc differ
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 ;
}