Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3422078
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:10:27+00:00 2026-05-18T06:10:27+00:00

I want to make an application in c++ which will run periodically. much like

  • 0

I want to make an application in c++ which will run periodically. much like an windows service. Is it possible to create a windows service in C++. If yes how?

Any tutorial for this?

EDIT: How can I create an installer for the Windows service?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:10:28+00:00Added an answer on May 18, 2026 at 6:10 am

    As indicated in another answer, you need to create a normal C++ program (starting with main), and call StartServiceCtrlDispatcher Win32 API to tell Windows that you want to run this program as a service. Some information on this function can be found in MSDN.

    Additionally, you’ll need a mechanism to install your service so that it appears in Windows Service Control Panel. And of course, an uninstall feature should also be provided. Typically, all the three functions (i.e., install, uninstall and run) are handled in a single executable. The difference in these three is indicated via command line parameters.

    You’ve not indicated what version of VC++ you are using. If you are going with managed .NET code, then it’s quite easy as Windows Service template is prebuilt into Visual Studio.

    However, if you are going with VC++ 6 (or 100% unmanaged code), then you need to know a lot of low level details. Further choices depend on your know-how of ATL or MFC (if you are going with older versions of the compiler/ runtime).

    This might be a good tutorial on creating Windows Services using C++.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make an console application of c which can run other applications
I am developing an application in which I start a service which will run
Suppose I want to make a Web application which uses a fixed width and
I want to make an application in C or C++ which have to monitor
I have a application written in wxPython which I want to make multilingual. Our
i want to make application is always run in background even when we pulled
I want to develop an Android application which can run on all ,screen type
Yes, it's a newb question. I want to make a timetabling application that these
I have been working on many applications which run as windows service or scheduled
I have a Silverlight application that will run out of the browser. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.