Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#INCLUDE in PRG works differently
Message
De
10/12/2004 11:16:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/12/2004 22:33:39
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00959425
Message ID:
00968308
Vues:
8
>I found out about about the second copy of the compiled code a while ago, but I always assumed (incorrectly) that when I recompiled all files it recompiled both copies. I also naively thought it recompiled both copies when I edited the PRG, but it only recompiles the FXP. The weird part is that having separate copies in the PJX and FXP didn't cause many problems in VFP 6 but has this major glitch with includes with VFP7 - VFP9. (Granted there were times when I inexplicably got odd messages about the source code not matching, but deleting the FRX to force a recompile always fixed that.)

Seems to be that report is really listening to you :).

>>Now what's up with your include files, I have no clue. I've seen my share of weird behaviors there, and one thing I know that helps is to have the include directory in the Set("Path").
>
>The folder is in VFP's Set("Path") and it still doesn't work with or without the path part of the Include filename. I suspect the way PRGs get compiled when building and when saving changes is somehow different and the path and current folder are being used for the latter, but not the former.

Just checked mine... and I'm having the .pjx in the current directory, and all the prgs have the
#include include\appl.h
line in them. The prgs are in a .\prgs subdirectory, so the path in the #include is not relative to the location of the prg itself, but to VFP's current directory when it runs them, or when it builds.
Most of the time I'm building an .app file (which is a regular build but doesn't increase the build number, which I find cool), but then sometimes I do run the prgs directly while trying things out, and don't have any trouble with include files... not now. I did have some when I moved stuff around, or when I switched from VFP7 to 8 and some of the classes (not prgs) were pointing to an include file of VFP7, not 8... which, again, worked fine as long as it was all on the same disk, but when I moved the whole project to a different disk, all the relative paths to home() were screwed.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform