Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap shutdown in a VFP exe as a windows service
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00834270
Message ID:
00835399
Vues:
16
Hi,

If you want shutdown in exe compiled program you should take 'clear events'
Sometimes, this 'on shutdown' command does not work so you'd better make separate program for shoutdown event.
And your destroy event needs 'clear event' or do your shoudown procedure.

-Code for 'myquit.prg'-

procedure myquit
on shutdown
clear events

_Your load event or start prg -
on shoutdown do path\myquit

-Your destroy or quit event code-
set proc to path\myquit addi
do myquit && or clear event

Stephen Chi cmcpro@hanmail.net http://www.vfpworld.com
Best regards,
Stephen M. Chi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform