服务无法在 Windows 7 下启动:FAILED 1053 [英] Service wont start under Windows 7: FAILED 1053

查看:33
本文介绍了服务无法在 Windows 7 下启动:FAILED 1053的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个C++服务,在Windows XP下运行完美,但在Windows 7下启动失败.SC CREATE返回成功,但是SC START返回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. From what I understand this is caused by timeout, but I receive the error immediately.

这是我的服务代码问题还是 7 中的某些设置问题?

Is this a problem with my service code or some setting in 7?

Windows 7 发送服务控制请求是否与 XP 不同?
如果是这样,我将如何捕获启动请求?

Does Windows 7 send service control requests differently then 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.

谢谢

推荐答案

通过将 MSVCR100D.dll 安装到 system32 中解决了问题.甚至不需要更改我的代码.

Solved Problem by installing MSVCR100D.dll into system32. No need to even change my code.

这篇关于服务无法在 Windows 7 下启动:FAILED 1053的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆