Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap shutdown in a VFP exe as a windows service
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00834270
Message ID:
00835399
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform