Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building exe and prg
Message
 
 
À
07/05/2015 05:18:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01619485
Message ID:
01619492
Vues:
53
>>What I see is the .PRG I have in my project (not the one used in the SET PROCEDURE) has no associated .FXP file. So I presumed that this one was not compiled. Therefore, VFP must have included in the EXE the .PRG/.FXP in the SET PROCEDURE.
>>
>>The reason I came across this issue is that without having the .PRG in my PROJECT, at run-time, I kept getting the error related to the .H file used in the .PRG. Note that the .PRG is the same, in both folders, and has not been change in 2 years. Yet, I was getting the errors at run time saying the variable "INC_NAME" (#defined in .H file) not found. Maybe I should look at this issue again when I am less tired.
>
>It may not be able to find the .h file at compile time, depending on the path. I know there was trouble with that, but generally having a path set to cover all files in the project at build time seems to work, i.e. I haven't had this kind of trouble for years, perhaps since VFP7.
>
>BTW, the .fxp files are used only when you run a prg from IDE (or execscript or explicitly compile from within the exe). The executable will contain its own version of the .fxp, which may never be on disk. Which is a bit different from vcx/scx which get compiled first (the objcode field contains the compiled code), on disk, and then included in the exe.

I think this is the key that I misunderstood; I thought that at Build time, VFP compiles .prg into .fxp on the drive and then includes it into the .EXE. And yes, somehow at compile time (even though I set the path to the folder where .h file resides) I was getting the error. Somehow I eliminated the error by copying the same file into the project folder and included it in the project. I will "play" with this again today.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform