Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Are there VFP commands that cannot be in a DLL?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00105788
Message ID:
00105840
Vues:
33
>I'm getting a "File Access denied" error message from within my DLL when trying to issue the VFP "OPEN DATABASE" command. I have successfully created the DLL with various class definitions in it and can instantiate objects using it. Are there certain VFP commands that a DLL will not process? My test program makes sure that the database is closed.
>
>Thanks again,
>Steve

Hello Steve,

Yes there are a lot of commands that won't work in a regular DLL, especially if you plan to use this DLL from languages such as VB. Many of the FoxPro API services rely on the Run-Time of Visual FoxPro. Of course this Run-Time environment is not existing when used from within VB ... as you may guess.
On the other hand, there are few Win32 API that it's preferable to stay away from when used in conjunction with VFP. Threads for example ... simply create a new thread and from within this new thread call a FoxPro service ... this will be the end of the road, guy, in no time.
By the way, what are you creating ? a DLL or an FLL ?

Pat
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform