How to create a Windows Service in C++/QT?

2019-05-06 23:29发布

问题:

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.

回答1:

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

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

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