简体   繁体   English

Windows 7下无法启动服务:失败1053

[英]Service wont start under Windows 7: FAILED 1053

I wrote a C++ service that functions perfectly under Windows XP but fails to start in Windows 7. SC CREATE returns success, however, SC START returns FAILED 1053: The service did not respond to the start or control request in a timely fashion. 我编写了一个C ++服务,该服务在Windows XP下可以正常运行,但是无法在Windows 7中启动。SC CREATE返回成功,但是,SC START返回FAILED 1053:该服务没有及时响应启动或控制请求。 From what I understand this is caused by timeout, but I receive the error immediately. 据我了解,这是由于超时引起的,但是我立即收到错误消息。

Is this a problem with my service code or some setting in 7? 我的服务代码或7中的某些设置是否有问题?

Does Windows 7 send service control requests differently then XP? Windows 7发送服务控制请求的方式是否不同于XP?
If so, how would I go about catching the start request? 如果是这样,我将如何处理启动请求?

Please let me know if you need to see the code as well as any other information that will help solve this problem. 如果您需要查看代码以及有助于解决此问题的其他信息,请告诉我。

Thanks 谢谢

Solved Problem by installing MSVCR100D.dll into system32. 通过将MSVCR100D.dll安装到system32中解决了问题。 No need to even change my code. 甚至不需要更改我的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM