Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't call a prg from inside an exe
Message
De
07/09/1999 16:00:34
 
 
À
07/09/1999 15:25:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00262029
Message ID:
00262161
Vues:
16
>PMFJI. I don't have VFP3, so I made my tests using VFP6 (no SP applied).
>
>Try this: in VFP, try to COMPILE prgname first, then run your executable. I tried it and if the prg isn't compiled, I get the same error, but if the prg is compiled (resulting in a .FXP file), the code runs nicely.
>
>Code must be compiled before VFP can run it. To the best of my knowledge, only VFP6 with SP3 can compile at runtime. The error you are getting is probably because VFP looks for the FXP and can't find it.
>
>Therefore, I see 2 solutions: either upgrade to VFP6 SP3, or create your PRG, compile them and then all you need is the FXP file (the VFP runtime can't do anything with PRGs).
>
>Not sure I'm clear, so if you need more explanation, I'll be glad to give it a shot! :-)
>
>>I tried the full path thing, I even tried something like the following:
>>
>>aa=ALLTRIM(GETFILE())
>>DO (aa)
>>
>>I still get the error that the prg file can't be located...
Perfect!

This is what I was looking for (I think). I will give it a try!

Thanks all!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform