Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to place .H file?
Message
De
04/08/2009 06:10:05
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01415979
Message ID:
01416031
Vues:
61
>>The standard place is at the top of the file.
>>
>
>This is what I thought. I realize now what my problem is/was. This is a main program (like main.prg). The .H file is in the /INCLUDE folder. And the path to this folder is after the #INCLUDE.. line. Therefore, when I run this project from the VFP IDE I get error on the line where one of the #DEFINE is used. Just to test it, I copied the SET PATH statement right above the #INCLUDE... line and it works. So I guess, when it comes to using this include in the main program I have to have a copy of it in the application folder.
>
>Thank you.

You can place your header files where ever you want.

The trick is to use SET PATH in the IDE.
IOW you need a config.fpw or some other way to run a program at IDE startup to set your path.

I finaly linked *,fpw files to VFP so that a click on a fpw will start

VFP9.exe -t -c%s

the fpw runs a prg, and this will set the environment for the specific project, including SET PATH

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform