>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.
In VFP 6 no user interface whatsoever will be allow in DLL COM objects!!!
No visible user interface, no messageboxes or other system dialogs - not even WAIT WINDOW or INKEY are allowed. All of those will result in a COM exception being thrown by VFP.
For your issue, David helped you out. It's crucial to be extrenely defensive
when building DLL COM objects and provide for some built in error handling
and logging so you can see what the errors are. Access errors are common
because of permissions, especially if you plan to use your DLL on the
Web.
Regards,
+++ Rick ---