General information
Category:
ActiveX controls in VFP
Title:
Error trapping in a DLL
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only