From c1a168571c081ae839ccd045b1676357342d2a20 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 15 Sep 2014 07:07:07 +0000 Subject: [PATCH] TestEGr 1.5i3 : - modifiche per chiave di protezione. --- TestEGr.cpp | 10 ++++++---- TestEGr.rc | Bin 24014 -> 24014 bytes 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TestEGr.cpp b/TestEGr.cpp index 36b9dc3..d4ca8ed 100644 --- a/TestEGr.cpp +++ b/TestEGr.cpp @@ -99,9 +99,13 @@ CTestEGrApp::InitInstance( void) SetEExLogger( &logGen) ; SetEGrLogger( &logGen) ; + // imposto la chiave di protezione + string sKey = GetPrivateProfileStringUtf8( "General", "Key", "", m_pszProfileName) ; + SetEGkKey( sKey) ; + // inizializzo il font manager - string sNfeFontDir = GetPrivateProfileStringUtf8( "GeomDB", "NfeFontDir", "", sFileIni.c_str()) ; - string sDefaultFont = GetPrivateProfileStringUtf8( "GeomDB", "DefaultFont", "", sFileIni.c_str()) ; + string sNfeFontDir = GetPrivateProfileStringUtf8( "GeomDB", "NfeFontDir", "", m_pszProfileName) ; + string sDefaultFont = GetPrivateProfileStringUtf8( "GeomDB", "DefaultFont", "", m_pszProfileName) ; InitFontManager( sNfeFontDir, sDefaultFont) ; // inizio programma @@ -147,8 +151,6 @@ string GetExeNameVer( void) { string sVer ; - - GetModuleVersion( NULL, sVer) ; return string( STR_EXE " ver." + sVer) ; } diff --git a/TestEGr.rc b/TestEGr.rc index 34153d47ff2c185c9b69bbc94e2c04bfeacc8c96..713ca344ee204a17fafca2dbd0063b8e898f1351 100644 GIT binary patch delta 107 zcmX@NoAKOk#tpmV7>zgYmUCuiG@g9WSa-9IQWXnWb3`hmuPrEB1tfKoQrlav4z?j*ec delta 107 zcmX@NoAKOk#tpmV7>zdXmUCuiG@5+SSa-9IQWXnWb3`hmuPrEB1tfKoQrlav4y6eP6(