Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetUnhandledExceptionFilter question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00479469
Message ID:
00479475
Vues:
33
Hi!

It is called 'Callback function' and you cannot do this in VFP directly. You can make this only using custom ActiveX written on C++ or Delphi or other language that does this job for VFP application or with use VFPCOM.DLL bind VFP code to some event of other COM/ActiveX object that will fire event when callback function called.

Anyway, I'm very curious why you need to handle this error? As far as I know such error is a subject of immediate code change of application or election of another tool...

In addition, I doubt you will be abnle to handle it in VFP code properly with dynamic strings handling and other dynamic memory stuff in VFP.

>Is there a way to extract a pointer to a subroutine in VFP.
>I'd like to create a custom C5 error handler for my app, so
>I need to specify something similar to:
>
> nHdle = SetUnhandledExceptionFilter(AddressOf GPF_Handle)
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform