TestEGr 1.6c6 :
- aggiornamento per codici di protezione.
This commit is contained in:
+10
-12
@@ -32,18 +32,14 @@
|
||||
#endif
|
||||
|
||||
//--------------------------- Define -----------------------------------------
|
||||
#if defined( _WIN64)
|
||||
#if defined( NDEBUG)
|
||||
#define STR_EXE "TestEGrR64.exe"
|
||||
#else
|
||||
#define STR_EXE "TestEGrD64.exe"
|
||||
#endif
|
||||
#elif defined( _WIN32)
|
||||
#if defined( NDEBUG)
|
||||
#define STR_EXE "TestEGrR32.exe"
|
||||
#else
|
||||
#define STR_EXE "TestEGrD32.exe"
|
||||
#endif
|
||||
#if defined( _WIN64) && defined( NDEBUG)
|
||||
#define STR_EXE "TestEGrR64.exe"
|
||||
#elif defined( _WIN64)
|
||||
#define STR_EXE "TestEGrD64.exe"
|
||||
#elif defined( _WIN32) && defined( NDEBUG)
|
||||
#define STR_EXE "TestEGrR32.exe"
|
||||
#else
|
||||
#define STR_EXE "TestEGrD32.exe"
|
||||
#endif
|
||||
|
||||
using namespace std ;
|
||||
@@ -102,6 +98,8 @@ CTestEGrApp::InitInstance( void)
|
||||
// imposto la chiave di protezione
|
||||
string sKey = GetPrivateProfileStringUtf8( "General", "Key", "", m_pszProfileName) ;
|
||||
SetEGkKey( sKey) ;
|
||||
SetEGrKey( sKey) ;
|
||||
SetEExKey( sKey) ;
|
||||
|
||||
// inizializzo il font manager
|
||||
string sNfeFontDir = GetPrivateProfileStringUtf8( "GeomDB", "NfeFontDir", "", m_pszProfileName) ;
|
||||
|
||||
BIN
Binary file not shown.
+14
-11
@@ -637,19 +637,22 @@ CTestEGrDlg::OnClose( void)
|
||||
if ( ! ManageModified())
|
||||
return ;
|
||||
|
||||
// salvo il tipo di visualizzazione
|
||||
int nShMode = m_View.GetScene()->GetShowMode() ;
|
||||
WritePrivateProfileInt( "Scene", "ShowMode", nShMode, AfxGetApp()->m_pszProfileName) ;
|
||||
// se scena ok
|
||||
if ( m_View.GetScene() != nullptr) {
|
||||
// salvo il tipo di visualizzazione
|
||||
int nShMode = m_View.GetScene()->GetShowMode() ;
|
||||
WritePrivateProfileInt( "Scene", "ShowMode", nShMode, AfxGetApp()->m_pszProfileName) ;
|
||||
|
||||
// salvo stato visualizzazione direzione curve
|
||||
bool bCrvDir = m_View.GetScene()->GetShowCurveDirection() ;
|
||||
WritePrivateProfileInt( "Scene", "CurveDir", bCrvDir, AfxGetApp()->m_pszProfileName) ;
|
||||
// salvo stato visualizzazione direzione curve
|
||||
bool bCrvDir = m_View.GetScene()->GetShowCurveDirection() ;
|
||||
WritePrivateProfileInt( "Scene", "CurveDir", bCrvDir, AfxGetApp()->m_pszProfileName) ;
|
||||
|
||||
// salvo gli angoli di vista
|
||||
double dAngVdeg, dAngOdeg ;
|
||||
m_View.GetScene()->GetCamera( &dAngVdeg, &dAngOdeg) ;
|
||||
string sOut = ToString( dAngVdeg, 1) + "," + ToString( dAngOdeg, 1) ;
|
||||
WritePrivateProfileStringUtf8( "Scene", "View", sOut.c_str(), AfxGetApp()->m_pszProfileName) ;
|
||||
// salvo gli angoli di vista
|
||||
double dAngVdeg, dAngOdeg ;
|
||||
m_View.GetScene()->GetCamera( &dAngVdeg, &dAngOdeg) ;
|
||||
string sOut = ToString( dAngVdeg, 1) + "," + ToString( dAngOdeg, 1) ;
|
||||
WritePrivateProfileStringUtf8( "Scene", "View", sOut.c_str(), AfxGetApp()->m_pszProfileName) ;
|
||||
}
|
||||
|
||||
// salvo lo stato della finestra del dialogo
|
||||
WINDOWPLACEMENT winPlace ;
|
||||
|
||||
Reference in New Issue
Block a user