Aggiornato uso del TDongle

git-svn-id: svn://10.65.10.50/trunk@6204 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1998-02-17 11:10:41 +00:00
parent 9cd0090e05
commit fadb3780d1

View File

@ -1361,9 +1361,9 @@ bool TMenu_application::check_user()
if (ok) if (ok)
{ {
user() = utente; user() = utente;
ok = get_serial_number(name()) >= 0; ok = get_serial_number() >= 0;
if (!ok) if (!ok)
error_box("E' stato superato il numero massimo di utenti collegati"); error_box("Probabilmente e' stato superato il numero massimo di utenti");
} }
} }
else else
@ -1408,7 +1408,6 @@ bool TMenu_application::create()
#ifdef _DEMO_ #ifdef _DEMO_
{ {
TMask w("Attenzione", 1, 78, 14); TMask w("Attenzione", 1, 78, 14);
w.add_static(DLG_NULL, 0 ,"@bAttenzione" , 35 , 1); w.add_static(DLG_NULL, 0 ,"@bAttenzione" , 35 , 1);
w.add_static(DLG_NULL, 0 ,"@bQuesto programma e' in versione dimostrativa." , 1 , 3); w.add_static(DLG_NULL, 0 ,"@bQuesto programma e' in versione dimostrativa." , 1 , 3);
w.add_static(DLG_NULL, 0 ,"@bNon si possono memorizzare date posteriori al 1992" , 1 , 5); w.add_static(DLG_NULL, 0 ,"@bNon si possono memorizzare date posteriori al 1992" , 1 , 5);
@ -1426,10 +1425,9 @@ bool TMenu_application::create()
set_perms(); set_perms();
test_temp(); test_temp();
TWait_cursor hourglass;
if (!_menu.ok()) if (!_menu.ok())
{ {
TWait_cursor hourglass;
TFilename menu = (argc() < 2) ? "baprassi" : argv(1); TFilename menu = (argc() < 2) ? "baprassi" : argv(1);
menu.ext("men"); menu.ext("men");
_menu.read(menu); _menu.read(menu);
@ -1756,7 +1754,7 @@ int main(int argc, char** argv)
newmenu.ext("men"); newmenu.ext("men");
if (newmenu == "prassi.men") if (newmenu == "prassi.men")
newmenu == "baprassi.men"; newmenu == "baprassi.men";
if (fexist(menu) && !fexist(newmenu)) if (menu.exist() && !newmenu.exist())
convert(menu); convert(menu);
menu = newmenu; menu = newmenu;
} }