KeyGenerator 1.6c6 :

- possibilità di caricare file Kge
- generazione file lic.
This commit is contained in:
Dario Sassi
2015-03-30 06:46:52 +00:00
parent 5fc9544fe3
commit b356c23a45
7 changed files with 208 additions and 56 deletions
+11 -4
View File
@@ -29,9 +29,9 @@ using namespace std ;
//--------------------------- Define -----------------------------------------
#if defined( NDEBUG)
#define STR_EXE "KeyGeneratorR32.exe"
#define STR_EXE "KeyGeneratorR32.exe"
#else
#define STR_EXE "KeyGeneratorD32.exe"
#define STR_EXE "KeyGeneratorD32.exe"
#endif
@@ -83,11 +83,18 @@ CKeyGeneratorApp::InitInstance( void)
// verifico la protezione
string sKey = GetPrivateProfileStringUtf8( "General", "Key", "", m_pszProfileName) ;
if ( VerifyKey( sKey, 1230, 15, 01) != KEY_OK)
if ( VerifyKey( sKey, 1230, 16, 10) != KEY_OK)
return FALSE ;
// gestione linea di comando
string sFileToOpen ;
CCommandLineInfo cmdInfo ;
ParseCommandLine( cmdInfo) ;
if ( cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen)
sFileToOpen = WtoA( cmdInfo.m_strFileName) ;
// Dialog interface
CKeyGeneratorDlg dlg ;
CKeyGeneratorDlg dlg( sFileToOpen) ;
m_pMainWnd = &dlg ;
dlg.DoModal() ;