>Hi Sergey
>
>I am loading Foxtools.fll already so that cannot be the problem. I am quite stuck here as this is very unusual. The error message is 'API Library not found'. This is not a foxtools.fll error. Why would this work while running the form from within the project while in VFP environment and not as a standalone exe?
Because there is a bug/feature in this class. It doesn't check if the foxtools library already installed. Here is the code
SET LIBRARY TO HOME() + ".\FOXTOOLS.FLL"
It also closes all FLL libraries because it doesn't have ADDITIVE clause. You can fix it by replacing this line of code with following
IF NOT ("FOXTOOLS.FLL" $ SET("LIBRARY"))
SET LIBRARY TO HOME() + ".\FOXTOOLS.FLL" ADDITIVE
ENDIF
--sb--