Through courtesy of:
A basic Windows service in C++ (CppWindowsService)
This code sample demonstrates creating a basic Windows Service application in VC++
http://code.msdn.microsoft.com/windo...rvice-cacf4948
I downloaded and built the above service on Win7 Ultimate (64bi) VS 2010. All seemed to go well and I was able to install the service using the Command Prompt. However, attempting to start the service was not possible, even when opening the Control Panel/Administrative Tools/Services as Administrator. Attempts to use the Start command were invariably met with:
Windows could not start the CppWindowService Sample Service service on Local COmputer.
Error 2: The system cannot find the file specified.
Oddly, looking at the Properties Page of the service, the path of the service is correct.
Please advise what I am doing wrong or what I am missing.
Thanks
A basic Windows service in C++ (CppWindowsService)
This code sample demonstrates creating a basic Windows Service application in VC++
http://code.msdn.microsoft.com/windo...rvice-cacf4948
I downloaded and built the above service on Win7 Ultimate (64bi) VS 2010. All seemed to go well and I was able to install the service using the Command Prompt. However, attempting to start the service was not possible, even when opening the Control Panel/Administrative Tools/Services as Administrator. Attempts to use the Start command were invariably met with:
Quote:
Windows could not start the CppWindowService Sample Service service on Local COmputer.
Error 2: The system cannot find the file specified.
Please advise what I am doing wrong or what I am missing.
Thanks