user2377349
user2377349

Reputation:

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

I want to create a Windows Service that simply records the screen and sends the recorded file to a server. How can I make a simple service on anything else but .NET? I prefer Qt or C++.

Upvotes: 6

Views: 21358

Answers (2)

Claudiu Stirbei
Claudiu Stirbei

Reputation: 11

I used the solution from this tutorial https://www.youtube.com/watch?v=qDH7zWYaScA and works very well on Windows 7 and Windows 10. I used QtService.

You have to include in .pro file:

include(..\qt-solutions-master\qtservice\src\qtservice.pri)

Upvotes: 1

cloose
cloose

Reputation: 956

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.

Upvotes: 13

Related Questions