Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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
Suivant
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