>>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
Pat,
thanks.....and it's a DLL.
Steve
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement