Lightening


I complied my program under VFP6 into an exe file in the program folder. But it cannot be launched. I believe there is nothing wrong with the code, because I just made a minor change.

The funny thing is that if I copied the file to other folders on the same drive, it works! And even more wear is that some old version VFP exe files could not be launched from within that program folder, either. I have to copy them out to test.

It only happens to VFP exe files. Other exe files are OK.

It did the same with VFP9.

Any idea what could be the problem




Re: Why my VFP exe file cannot be launched?

RGBean


VFP .EXE files require the appropriate VFP runtime. It sounds like you don't have these in your Windows PATH. Note: If you compile under VFP 6.0 SP5, it won't run without the VFP 6,0 runtimes, and you may actually require the VFP 6.0 SP5 runtimes.

VFP 9.0 .EXEs are similar in that they need VFP 9.0 runtimes!

Rick

 






Re: Why my VFP exe file cannot be launched?

Lightening

Do you mean those vfp6*.dll files

They are under my c:\windows\system32 folder. I also had a copy under the program folder I mentioned.

The thing is the folder had been working well for years until last weekend. It happens to another similar folder on the server. I doubt something is wrong with VFP engine.

Thank you for your answer.






Re: Why my VFP exe file cannot be launched?

dni

you may try to refresh "dll" files in the folder. If you have them in folder "fox" will use them prior "dll" files from "system32".




Re: Why my VFP exe file cannot be launched?

Lightening

How do I refresh *.dll files Thanks.





Re: Why my VFP exe file cannot be launched?

dni

Copy the files "over" from a locations where the "exe" file is working. Or just put runtime files for installation kit or from system32.




Re: Why my VFP exe file cannot be launched?

AndyKr

You can find a list of the files needed to run a VFP EXE here:

http://fox.wikis.com/wc.dll Wiki~VFPRuntimeDLLConcordance~VFP






Re: Why my VFP exe file cannot be launched?

Don Higgins

What do you mean it cannot be launched Do you mean it starts and exits immediately or does an error come up






Re: Why my VFP exe file cannot be launched?

SharathMum

I assume its your application (EXE) not VFP.EXE which u have complied is not working from a folder, but if u copy it to another folder it works

Check in the windows Task Manager under process your application is been shown after u run it

if yes, check if u have config.fpw in the folder

if yes check if it has SCREEN = OFF

if yes make it SCREEN = ON







Re: Why my VFP exe file cannot be launched?

Lightening

That is the reason! I never touched the config.fpw file. It now works after I set screen = on.

Thank you SharathMum and all for your answers! Have a nice day.