Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.exe file is not an object file.

Status
Not open for further replies.

foxwizard

Programmer
Aug 23, 2001
81
PH

Hi guys,

I created a program using Vfoxpro 6.0 and distribute it to an exe file with no errors. However, when I run the exe file this error ".exe file is not an object file" always and suddenly close the program... I need help!!!!!!!

Thanks....

Foxwizard.
 
HI
This error means that....
"An attempt was made to load a compiled Visual FoxPro program that doesn't have a proper header.
Verify the name of the file you are trying to run using DO."

1. Specifiy the file name in CAPS with full extension in the call made.
2. Delete the EXE file n the working directory and copy it again with CAPS. I would advice to always change this attribute of this EXE or other run time applications to +R.
(having upper and lowers case does mean differentlly under different OS... especialy if you go Linux on a later date.. Also when you use PKZIP or such software.)

Hope this sorts out your problem :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Foxwizard,
It's not clear from your information - can you answer a couple additional questions?
1) Did you create a project and create the .EXE through a build? (This is the only way to create a Valid .EXE)

2) Did you use the Setup Wizard to create a distribution set? (This is the easiest way to make sure your .EXE is installed properly with the VFP runtimes and any necessary updates to the workstation's system files.)

3) What OS did you compile it under, and what OS are you trying to run it under? (There were some issues when compiling under Win 9x and installing under NT/2000 - but NOT the other way around.)

4) What Service Pack have you upgraded VFP 6.0 to? (SP 5 is the most current and most stable.) Are the runtimes the same version as the developer's system?

Rick
 
Rick,

I build a project then build exe file using the OS win98. I did not create a setup yet instead I run the exe file first in the same computer and the same OS just to find out if it's working, however i cannot run the exe file due to this error. I am using Service Pack 3.

Thanks again....

foxwizard.
 
OK, I agree this is confusing - I've never had any problems running an .EXE build on the same system. Have you updated the OS since you installed VFP 6.0? For example Win95 -> Install VFP 6.0 -> Upgrade to Win98? Or did you install another version of VFP AFTER VFP 6.0? e.g. VFP 5.0, the tech preview of VFP 7.0 or the .NET beta?

Maybe the best first step would be to re-install VFP 6.0.

Rick
 
Rick,

There was no upgrading made for both OS and VFP 6.0. Anyway, I will try to re-install the VFP 6.0 and try to use the Service Pack 5.

Thanks.....

foxwizard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top