Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Windows Service in Win7 would be nice ... but ...

$
0
0
Through courtesy of:

A basic Windows service in C++ (CppWindowsServ​ice)
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.
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

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images