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 ComputerError 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
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