Solved

Programming a software to run as a Windows service

Posted on 2002-03-04
6
147 Views
Last Modified: 2010-08-05
Is it possible to program a software to run as a windows service? if possible, how? what are the differences when running the program the usual way?...i intend to make a 24-7 that will run as part of the OS...thanks! :)
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6840561
Well in D5 all you have to do is File > New and select the "Service" module in the list. Services generally run in the background usually transparently and apps generally run in the foreground.


The Crazy One
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 6840607
hi again...are there any significant differences between the usual apps and services?
thanks!
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 100 total points
ID: 6841565
Well Services generally speaking are built with one task in mind and usually don't have user interfaces to deal with. Although some of your anti-virus programs run as services instead as an application. Services can be ran before a user logins therefore setting up certain things such as authenication purposes or broadcasting to the network. Appplications Like LapLink will use a service to start before login so a user on a remote computer can login on the host computer from their computer.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:AvonWyss
ID: 6841733
Services are running in another security context than the loggen on users, and they are also active when noone is logged on. In addition to this, the SCM (service control manager) keeps track of the services, starts and stops them as needed and can even restart a service which has shut down unexpectedly (crash). But apart fom these differences, it's also just an application.
0
 
LVL 3

Expert Comment

by:lopem
ID: 6842702
listening...
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 6843804
so its good to make an application particularly a Server application a service? that way when a crah occurs, the OS will restart the whole app? plus the resets and the autostart...services can have forms too right? like the Symantec autoprotect or SQL service manager?

thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi: how to implement a User Shortcut mapper? 1 138
LAN or WAN ? 11 106
how to send memory stream from ics Client To ics server ? 11 180
Delphi Seattle StructureView color 1 22
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question