Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to control use of application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01171748
Message ID:
01171750
Vues:
7
This message has been marked as a message which has helped to the initial question of the thread.
>I want to limit the number of times my application can be launched on different workstations.
>
>How do you guys do it?

One technique I remember reading about way back is to have a table with the preset number of record in it (ie: your limited number of times to allow running -- ex: 10).

Then, whenever anybody logs in to you app, you can locate for RLOCK() of a record in that table at the beginning... if you can't get one, then the rest are all used... If a person quits out, that record will be released, so you only need to check for it up front, and never look back (unless you do an unlock all, or close that table by mistake).

Another option would be to store the users workstation info (ie: sys(0) ) in a field in a record that is blank. This way, you would know who's machine was in the system too.

Again, this was just one such approach I recalled
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform