Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading dll
Message
De
20/12/2000 01:45:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Loading dll
Divers
Thread ID:
00455355
Message ID:
00455355
Vues:
59
I have the dll and the foxpro exe in the same directory. I can declare and load the dll and it works fine.

The problem is from foxpro I am executing some other program (Y) which is in different directory. Once I execute the y program the default directory is changed and foxpro is unable to find the dll. I tried to set current directory by using foxpro commands "set default to" , "set Path to" and also tried to use windows api function "SetCurrentDirectory" Nothing worked - foxpro couldnot find the dll and gave an error with Declare dll.

One more wierd behaviour - Every thing works fine ONLY the first time I run the exe after build. If I run the SAME exe for the second time it gives an error. If I rebuild the executable, Again it works fine for ONE time. It is unbelievable.

Anybody encountered this before. Please shed some light.

Thank you.
Gnana.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform