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:
parent
ddad889ece
commit
f3f2ae5e9a
@ -783,7 +783,7 @@ wxString CampoWizardPage4::DecodeString(const wxString& data)
|
|||||||
int CampoWizardPage4::VersionYear()
|
int CampoWizardPage4::VersionYear()
|
||||||
{
|
{
|
||||||
char ver[32];
|
char ver[32];
|
||||||
GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "./program/install.ini");
|
GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "../program/install.ini");
|
||||||
ver[4] = '\0';
|
ver[4] = '\0';
|
||||||
return atoi(ver);
|
return atoi(ver);
|
||||||
}
|
}
|
||||||
@ -812,14 +812,13 @@ int CampoWizardPage4::DongleTest()
|
|||||||
if (yearKey < verYear) // Chiave già programmata con assistenza pagata
|
if (yearKey < verYear) // Chiave già programmata con assistenza pagata
|
||||||
{
|
{
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
wxFileInputStream file("./program/dninst.zip");
|
wxFileInputStream file("../campo/dninst.zip");
|
||||||
if (file.IsOk())
|
if (file.IsOk())
|
||||||
{
|
{
|
||||||
wxTextInputStream keys(file);
|
wxTextInputStream keys(file);
|
||||||
wxString line = keys.ReadLine();
|
wxString line = keys.ReadLine();
|
||||||
srand(883);
|
srand(883);
|
||||||
DecodeString(line);
|
const int ass_year = atoi(DecodeString(line));
|
||||||
const int ass_year = atoi(line);
|
|
||||||
if (ass_year > yearKey) // Non devo abbassare l'anno di assistenza!
|
if (ass_year > yearKey) // Non devo abbassare l'anno di assistenza!
|
||||||
{
|
{
|
||||||
srand(ass_year);
|
srand(ass_year);
|
||||||
@ -838,7 +837,7 @@ int CampoWizardPage4::DongleTest()
|
|||||||
{
|
{
|
||||||
const int n = ass_year%10;
|
const int n = ass_year%10;
|
||||||
const int y = (ass_year / 1000) * 1000 + (ass_year%1000) /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);
|
WarningBox(line);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user