Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#INCLUDE in PRG works differently
Message
From
10/12/2004 12:19:33
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
 
To
10/12/2004 11:16:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00959425
Message ID:
00968334
Views:
8
Dragan,

I found a workaround.

First, my StartCB.prg was setting up my path using paths to several application folders relative to the current folder (e.g. "Data, Libs, Progs, Include, ...") and framework paths using the full path including the drive. I changed StartCB to add sys(5)+ curdir() to the folders relative to the application root folder. Then I changed all the #INCLUDE "INCLUDE\APPINCL.H to #include "AppIncl.h" This got around the problem.

I tried just changing the path without changing the #INCLUDE, but that was not sufficient. The compile to FXP still couldn't find the INCLUDE\APPINCL.H file, which is what I expected based on previous experience.

By the way, even though the compile does not report any errors when it fails to find the include file, it drops a .ERR file in the same folder as the PRG and FXP with a message about not finding the include file.

Based on all this, it appears to me that the compile to FXP is done as if the curdir() was the folder where the PRG is located, whereas the compile to PJX is done using the curdir() as it really is. I'm not aware of any VFP settings or options that would affect this other than SET PATH.

It still looks like a VFP bug to me. But I think I can live with the workaround.

...Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform