Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error trapping in a DLL
Message
From
05/07/2000 13:14:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Error trapping in a DLL
Miscellaneous
Thread ID:
00388395
Message ID:
00388395
Views:
42
I have created a DLL that is being used in a Visual Basic application. When an error occurs that I was not specifically testing for, my DLL simply fails and returns a .F. I have tried to put an ON ERROR command the DLL.

If I say ON ERROR DO errhand WITH [parameters here], it is looking for "errhand" outside of the dll.

If I say ON ERROR =this.errhand([parameters here]), I get THIS can only be used within a method. (I have a PRIVATE FUNCTION called ERRHAND.

All I want to do is return a -99 along with logging the error stuff in a log file that I am keeping for all messages. What am I doing wrong?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform