title: Run an executable as service in C++
body: <p>I created a <code>Win32Console</code> application using <code>MSVS2013</code> and it was compiled successfully. Now I tried creating a service using <code>CreateService</code> and binary path was set to the path of the above produced executable. Though I was able to create the service, I cannot start it using <code>StartService</code>. The error code <code>1053</code> is thrown each time. I tried using <code>sc.exe</code> and also tried to start the service manually from <code>Services</code>. The same error is shown. How can I solve it now?</p>