exe is not a Visual Foxpro .Exe file

Dear Experts

Now, this time I am facing the greatest problem of my life about

vfp and my future.

For the last about three years all of my softwares were runing properly but unfortunately from the last month I am facing these error messages

1- D:\ginning\accounts.exe is not a Visual Foxpro .Exe file

2- File D:\ginning\accounts.exe is not object file

I raise following steps to solve this problem.

1- Done partition of Hard Disk with FDISK and then Format.

2- Install windows98 again with Setup files, not from GHOST

3- Delete project file and exe file again.

4- Compile Exe again

5- I scan my computer for Viruses but no virus found.

After this accounts.exe runs but after some HOURS the error messagew appear again.

I think the above steps are not solution of the problems.

I want to know "WHY THIS HAPPENS"

I am using VFP6 on WINDOWS98 platform on personal computer without

networking. I do not use setup files. Besides this

1- I do not use any software protection tool like Refox or XONXISE.

2- I install Windows98 from window98 CD by runing Setup file.

3- I do not use any resourece file. I have set resource off in my configuration file. So there is no foxuser.dbf on my PC.

4- I have following VFP6*.DLL files

vfp6r.dllc:\windows\system

vfp6renu.dllc:\windows\system

vfp6enu.dllc:\Program files\Micorsoft Visual Studi

Please help me to save my future beacuse I am a professional

programmer. Otherwise my job will be finish and I shall go to dogs.

Thanks in advance

[6135 byte] By [TariqMehmood] at [2008-2-25]
# 1
Some ideas...
What virus scanning tool are you using?
This sounds just like a virus. It may be that the EXE has the virus directly in it - are you able to recompile the EXE on another machine?
I've seen this type of problem numerous times and it almost always comes down to a virus.
The other thing to check though is does the computer itself have a real-time virus protection on it? If so, it may be delaying the way the EXE is being called.
You did mention the DLLs though - what happens when you have an FXP - does that run or does it give the same problem?
FINALLY -> verify that the VFP 6 version of the VFP used to compile the EXE is the SAME as the version installed on the user's machine (DLL) wise.

AndrewMacNeill at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 2
Do you have the latest service pack for VFP 6 installed (SP5)? There was a bug in an earlier version of VFP that caused this error message for non-english locales when compiling or executing the EXE on Windows NT. The problem had to do with the version number and using a comma instead of a period (that's why it doesn't affect english systems).
ChristofWollenhaupt at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...