Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Config not working properly
Message
De
29/11/1999 19:26:58
 
 
À
29/11/1999 16:57:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00296497
Message ID:
00296628
Vues:
20
>>>>A number of times we have built an exe with the top line in the config being
>>>>PATH = DATA;GRAPHICS;REPORTS
>>>>
>>>>We then create a short cut to the project.
>>>>
>>>>The start in is in the project root. We use the -c switch to give the name of the config. We have tried without the path and also fully pathed. For some reason the path is not taking. Only by adding a path statement in the code at the beginning of the program does the pathing work.
>
>We fought with config.fpw for a while before finding the documented search path. This is from memory, so you may wish to check this:
>
>1) config.fpw in the application directory
>2) first config.fpw found in the DOS PATH. (That's right, the DOS path!)
>3) config.fpw embedded in the application
>4) named configuration file (using -c) on the command line starting the application.
>
>The Fox path is never consulted to find the config file, since the config file is executed before the application begins. The reason that the embedded config.fpw does not take precedence is so that you can use different configurations for each copy of the application that you distribute. But in that case, it must be named "config.fpw" and must be in the application directory to be successful.

Changing the name to config.fpw and adding that to the project worked. Thanks a lot.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform