Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are there VFP commands that cannot be in a DLL?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00105788
Message ID:
00109802
Views:
34
>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 ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform