Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a VFP exe become an win2k service
Message
From
21/11/2001 10:53:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to make a VFP exe become an win2k service
Miscellaneous
Thread ID:
00584505
Message ID:
00584505
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform