Error massege: API library is not found when run program?  
Author Message
AnnyJacky





PostPosted: Visual FoxPro General, Error massege: API library is not found when run program? Top

Hi all!

I use VFP9! My program was compiled to EXE file, but when run from EXE is error massege: "API library is not found when run program". But if start VFP9 before run program is normal not error!

Thanks!



Visual FoxPro2  
 
 
Alex Feldstein





PostPosted: Visual FoxPro General, Error massege: API library is not found when run program? Top

Do you know which library you are using and is not found

You may have to debug the EXE (can't use de**** step-by-step) by writing to a log or using Wait Window or MessageBox in strategic places, or debugout.

Once you find the offending API call you may have a handle on the problem.

Is this happening in the same PC

Which OS

Are there any permission problems

Are there any path problems

Is the user running the EXE the same user running the development APP in VFP (that is, are the credentials the same ) Sometimes you run an EXE through the scheduler which runs as a Windows user, not the logged in user.

It could be that the API call is in System32 and the user does not have sufficient access. Or maybe in another folder with the same problem.

Start by identifying the API call.


 
 
AnnyJacky





PostPosted: Visual FoxPro General, Error massege: API library is not found when run program? Top

Thanks Alex,

- I don't use library API in my program.

- OS WinXP SP1.

- VFP not know line error!


 
 
AndyKr





PostPosted: Visual FoxPro General, Error massege: API library is not found when run program? Top

Sounds as though the VFP Runtimes are not installed properly. What version of VFP and how were the run-time files loaded

You can find a list of the requirements for the run-time libraries here:

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