KeyGenerator 3.1a1 :
- aggiunta gestione versione 31.
This commit is contained in:
+3
-3
@@ -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.
|
// Contenuto : Implementazione della classe applicazione generatore chiavi.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@@ -85,7 +85,7 @@ CKeyGeneratorApp::InitInstance( void)
|
|||||||
// verifico la protezione
|
// verifico la protezione
|
||||||
SetLockType( KEY_LOCK_TYPE_HW) ;
|
SetLockType( KEY_LOCK_TYPE_HW) ;
|
||||||
string sKey = GetPrivateProfileStringUtf8( "General", "Key", "", m_pszProfileName) ;
|
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 ;
|
m_nExitCode = 1 ;
|
||||||
return FALSE ;
|
return FALSE ;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -63,7 +63,7 @@
|
|||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
|
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
|||||||
+12
-7
@@ -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.
|
// Contenuto : Implementazione della classe dialogo generatore chiavi.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
// 05.01.24 DS Aggiunta versione 26.
|
// 05.01.24 DS Aggiunta versione 26.
|
||||||
// 05.10.24 DS Aggiunto Effector.
|
// 05.10.24 DS Aggiunto Effector.
|
||||||
// 13.01.25 DS Aggiunta versione 27.
|
// 13.01.25 DS Aggiunta versione 27.
|
||||||
|
// 02.01.26 DS Aggiunta versione 31.
|
||||||
//
|
//
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ static const vector<string> vsProd = {
|
|||||||
"9935" // EgtEngine
|
"9935" // EgtEngine
|
||||||
} ; // altri valori : 463, 719, 975, 1487, 2255, 2511, 3535, 4559, 9679 (max 9999 e deve contenere i bit di 207)
|
} ; // altri valori : 463, 719, 975, 1487, 2255, 2511, 3535, 4559, 9679 (max 9999 e deve contenere i bit di 207)
|
||||||
static const vector<string> vsVer = {
|
static const vector<string> 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<string> vsSubVer = {
|
static const vector<string> vsSubVer = {
|
||||||
"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", ""
|
"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) ;
|
int nLev = GetPrivateProfileInt( sSec.c_str(), "Lev", 0, szFile) ;
|
||||||
((CComboBox*)GetDlgItem( IDC_LEV))->SetCurSel( nLev - 1) ;
|
((CComboBox*)GetDlgItem( IDC_LEV))->SetCurSel( nLev - 1) ;
|
||||||
int nExpTime = GetPrivateProfileInt( sSec.c_str(), "ExpDays", 0, szFile) ;
|
int nExpTime = GetPrivateProfileInt( sSec.c_str(), "ExpDays", 0, szFile) ;
|
||||||
if ( nExpTime != 0)
|
if ( nExpTime != 0) {
|
||||||
((CDateTimeCtrl*)GetDlgItem( IDC_EXPIRATION))->SetTime( &CTime( unsigned( nExpTime) * 24 * 3600)) ;
|
CTime time( unsigned( nExpTime) * 24 * 3600) ;
|
||||||
|
((CDateTimeCtrl*)GetDlgItem( IDC_EXPIRATION))->SetTime( &time) ;
|
||||||
|
}
|
||||||
int nOpt1 = GetPrivateProfileInt( sSec.c_str(), "Opt1", 0, szFile) ;
|
int nOpt1 = GetPrivateProfileInt( sSec.c_str(), "Opt1", 0, szFile) ;
|
||||||
for ( int i = IDC_CHECK01, j = 0 ; i <= IDC_CHECK16 ; ++ i, ++ j) {
|
for ( int i = IDC_CHECK01, j = 0 ; i <= IDC_CHECK16 ; ++ i, ++ j) {
|
||||||
if ( ( nOpt1 & ( 1 << j)) != 0)
|
if ( ( nOpt1 & ( 1 << j)) != 0)
|
||||||
@@ -361,8 +364,10 @@ CKeyGeneratorDlg::LoadFile( const char* szFile)
|
|||||||
}
|
}
|
||||||
// check non ancora inseriti nel dialogo
|
// check non ancora inseriti nel dialogo
|
||||||
int nOptExpTime = GetPrivateProfileInt( sSec.c_str(), "OptExpDays", 0, szFile) ;
|
int nOptExpTime = GetPrivateProfileInt( sSec.c_str(), "OptExpDays", 0, szFile) ;
|
||||||
if ( nOptExpTime != 0)
|
if ( nOptExpTime != 0) {
|
||||||
((CDateTimeCtrl*)GetDlgItem( IDC_OPT_EXPIR))->SetTime( &CTime( unsigned( nOptExpTime) * 24 * 3600)) ;
|
CTime time( unsigned( nOptExpTime) * 24 * 3600) ;
|
||||||
|
((CDateTimeCtrl*)GetDlgItem( IDC_OPT_EXPIR))->SetTime( &time) ;
|
||||||
|
}
|
||||||
return true ;
|
return true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user