Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@15595 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2007-09-10 15:06:53 +00:00
parent ddad889ece
commit f3f2ae5e9a

View File

@ -783,7 +783,7 @@ wxString CampoWizardPage4::DecodeString(const wxString& data)
int CampoWizardPage4::VersionYear()
{
char ver[32];
GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "./program/install.ini");
GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "../program/install.ini");
ver[4] = '\0';
return atoi(ver);
}
@ -812,14 +812,13 @@ int CampoWizardPage4::DongleTest()
if (yearKey < verYear) // Chiave già programmata con assistenza pagata
{
bool ok = false;
wxFileInputStream file("./program/dninst.zip");
wxFileInputStream file("../campo/dninst.zip");
if (file.IsOk())
{
wxTextInputStream keys(file);
wxString line = keys.ReadLine();
srand(883);
DecodeString(line);
const int ass_year = atoi(line);
const int ass_year = atoi(DecodeString(line));
if (ass_year > yearKey) // Non devo abbassare l'anno di assistenza!
{
srand(ass_year);
@ -838,7 +837,7 @@ int CampoWizardPage4::DongleTest()
{
const int n = ass_year%10;
const int y = (ass_year / 1000) * 1000 + (ass_year%1000) /10;
line.Printf("Il contratto di manutenzione %d/%d verrà attivato automaticamente", y, n);
line.Printf("Il contratto di manutenzione %d/%d verrà attivato automaticamente\ndurante l'installazione del software", y, n);
WarningBox(line);
}
else