Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't call a prg from inside an exe
Message
From
07/09/1999 16:00:34
 
 
To
07/09/1999 15:25:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00262029
Message ID:
00262161
Views:
17
>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform