如何在 C++/QT 中创建 Windows 服务? [英] How to create a Windows Service in C++/QT?

查看:171
本文介绍了如何在 C++/QT 中创建 Windows 服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个简单地记录屏幕并将记录的文件发送到服务器的 Windows 服务.但是每当我在 Google 上搜索 Windows 服务创建时,我总是会得到 .NET 结果.如何在 .NET 之外的其他任何东西上创建一个简单的服务?我会弄清楚剩下的.我更喜欢 Qt 或 C++,但我找不到适合它们的任何东西.

I want to create a Windows Service that simply records the screen and sends the recorded file to a server. But whenever I search Google for Windows Service creation I always get .NET results. How can I make a simple service on anything else but .NET? I will figure out the rest. I prefer Qt or C++ but I can't find anything for them.

推荐答案

Qt Solutions Archive 您可以找到包含示例的 QtService 项目.

In the Qt Solutions Archive you can find the QtService project including examples.

QtService 组件对于开发 Windows 服务很有用和 Unix 守护进程.

The QtService component is useful for developing Windows services and Unix daemons.

组件不再维护,但它应该仍然可以工作.许可证是 BSD-3-Clause.

The component is not maintained anymore but it should still work. The license is BSD-3-Clause.

这篇关于如何在 C++/QT 中创建 Windows 服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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