Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Development Mode
Message
De
15/10/2020 07:02:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01676646
Message ID:
01676668
Vues:
46
>What I meant was, that instead of starting the exe directly (as the user typically does by double click on the shortcut), you can start the exe from any VFP Command window typing DO MyVFPExe.Exe. Then it starts the program as usual, but VERSION(2) will indicate that you are running in developer mode.
>
>So any person can run your program as developer if that is what you are looking at.
>
>Probably safest way would be to create a constant or public variable that you switch during compiling the release executable.
>
public variable could be changed in the debugger available if running the code from development IDE. Safer IMO is the approach to have a program, which is responsible for compiling to exe, which in advance switches compiler constants or the files included housing those constants.

regards
thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform