Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP as a Service
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01489174
Message ID:
01489207
Vues:
83
Hi

I will try this and see if it works.

Thanks,
Simon

>>Hi
>>
>>I have created a VFP application and set it up as a Windows service and everything works just fine. However, does anyone know of way I can know when the service is being stopped? I would like to do some cleanup etc. before the application quits.
>>
>>Thanks,
>>Simon
>
>First you must enable support NT service with:
>
>
SYS(2340,1)
>
>After the ON SHUTDOWN command:
>
>
>ON SHUTDOWN DO MyCloseService
>
>PROCEDURE MyCloseService()
>  =MyCleanUp()
>  QUIT
>ENDPROC
>
Simon White
dCipher Computing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform