diff --git a/KeyGenerator.rc b/KeyGenerator.rc index 847f315..e473dab 100644 Binary files a/KeyGenerator.rc and b/KeyGenerator.rc differ diff --git a/KeyGeneratorDlg.cpp b/KeyGeneratorDlg.cpp index 479db4b..38071e9 100644 --- a/KeyGeneratorDlg.cpp +++ b/KeyGeneratorDlg.cpp @@ -1,13 +1,13 @@ //---------------------------------------------------------------------------- -// EgalTech 2013-2014 +// EgalTech 2013-2019 //---------------------------------------------------------------------------- -// File : KeyGeneratorDlg.cpp Data : 11.09.14 Versione : 1.5i2 +// File : KeyGeneratorDlg.cpp Data : 08.05.19 Versione : 2.1e1 // Contenuto : Implementazione della classe dialogo generatore chiavi. // // // // Modifiche : 11.09.14 DS Creazione modulo. -// +// 08.05.19 DS Portate Opzioni2 a 24. // //---------------------------------------------------------------------------- @@ -303,7 +303,7 @@ CKeyGeneratorDlg::LoadFile( const char* szFile) ((CButton*)GetDlgItem( i))->SetCheck( BST_UNCHECKED) ; } int nOpt2 = GetPrivateProfileInt( sSec.c_str(), "Opt2", 0, szFile) ; - for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_16 ; ++ i, ++ j) { + for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_24 ; ++ i, ++ j) { if ( ( nOpt2 & ( 1 << j)) != 0) ((CButton*)GetDlgItem( i))->SetCheck( BST_CHECKED) ; else @@ -382,7 +382,7 @@ CKeyGeneratorDlg::OnGenerate( void) nOpt1 += ( 1 << j) ; } unsigned int nOpt2 = 0 ; - for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_16 ; ++ i, ++ j) { + for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_24 ; ++ i, ++ j) { if ( ((CButton*)GetDlgItem( i))->GetCheck() == BST_CHECKED) nOpt2 += ( 1 << j) ; } diff --git a/resource.h b/resource.h index 28c2631..5de9e80 100644 Binary files a/resource.h and b/resource.h differ