Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a VFP exe become an win2k service
Message
 
À
21/11/2001 10:53:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00584505
Message ID:
00584760
Vues:
27
I have used http://www.firedaemon.com/ with great success...


>Hi,
>
>I have a small app that IT people wants to turn into a win2k service. It runs ok when in normal use, but when the IT people turn it into a service (using srvany.exe and srvinstw.exe, according to each program's instructions) and starts it we get the message:
>
>Could not start the Lixo2 service on Local Computer
>Error 1053: The service did not respond to the start or control request in a timely fashion..
>
>"Lixo2" was the assigned service name. Below is the prg listing:
>
> nMessage = 0
>
> Do While .T.
>
>    nMessage = nMessage + 1
>
>    SendMapiMail ("This is message #" + lTrim (Transform (nMessage, "999")))
>
>    Inkey (20)
>
> EndDo
>
> Quit
>
> Function SendMapiMail  && Sends email messages thru MAPI.
> LParameters pMessage
>  ...
> Return
> EndFunc
>
>What should I do in order to make it run ok as a service (if a VFP exe can run as a service)?
>
>I'm using VFP6 SP5 in a win2k PC.
>
>TIA
>
>Fernando
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform