I have visited this question before ... but have not been successful.
I have an application used to perform automated processes. It is created with harbour and MSVC++ 2013. As a standalone it runs without a problem. Because there is no user interface, or display of data, it runs quietly in the background and can continue for days.
Normally I could just put this into the Startup folder on a server, but that does not get enacted until someone logs into the server. So I need to have it run as a windows service.
I have been able to register it as a service, using the documented information ( recommended ) for srvstart.exe. It then does install and shows on the service list. Apparently some have had success with this.
When I try to start the service, I get a system error 1067. In previous testing it appeared that the program needs to return some value when it is started or the service manager will abort it.
Does anyone here have experience creating apps with Harbour to run as a windows service ? If so, do I need to include something in my program code so it will be successful ?
Thank you for looking at this and any responses.
Tim