I am lookig into creating a Windows service in VC++ 2012 on Windiws 7. I just built the source of the sample service available in http://code.msdn.microsoft.com/windowsdesktop/CppWindowsService-cacf4948. The service installs but I am not able to start it from service control manger. The error on starting the service says " Error: 1053. The service did not respond to the start or control request in a timely fashion. "
What could be wrong here? In fact, I am not able to start any sample service I wrote in Vc++ 2012 based on examples. I tried debugging the service by following the steps inhttp://support.microsoft.com/kb/824344/en-us . I need to debug the service start process since the issue seems to be in start . I followed the corresponidng section in this link but I am not able to debug the service. The service simply doesnt start and it is not broken into the debugger(WinDbg). It is displaying the same error message as above. Any inputs?