i know that this is probably not the place to ask but has anyone created a service program? or can someone direct me to a how-to or some tutorial.
cous i am trying to create an service app but my success is quite miserable.
thanks in advance.
i know that this is probably not the place to ask but has anyone created a service program? or can someone direct me to a how-to or some tutorial.
cous i am trying to create an service app but my success is quite miserable.
thanks in advance.
I've done one before. What happens when you try it? Here's a list of points to keep in mind:
Watch the "interactive" setting. If this is set to true, your thing can pop up dialogues and generally show stuff to the user. However, this may cause hassle if nobody is logged into Windows (not sure, mind you, cause I always set it to false). Prefer log files (saved as plain text possibly) to keep the status up to date.
Remember to install the thing first! This is obvious, and quite possibly patronising (if so, sorry), but you have to pass in the command line parameter /install to get it installed and visible in the services list. Similarly, /uninstall to get rid of it later.
I tend to put something like this in the execute method for the app:
[pascal] while not Terminated do
ServiceThread.ProcessRequests(True);[/pascal]
I use a timer for the actual work to be done.
"All paid jobs absorb and degrade the mind."
<br />-- Aristotle
Also, here's a good article I found a while ago about the subject:
http://builder.com.com/5100-6387-1050538-1.html
"All paid jobs absorb and degrade the mind."
<br />-- Aristotle
Alimonster are you talking about the service template or the service application template?
thanks for the article i am going to read it at the time of the post
To be honest, I can't remember whether I selected service application or service. I think a service application is only a container for one or more services, so I'm not sure that it makes that much of a difference. I probably selected the application thinking "hey, it says application - that's got to be what I want".Originally Posted by hammer
"All paid jobs absorb and degrade the mind."
<br />-- Aristotle
you were talking about the service app. template
thanks very much for the article it was of great help
Bookmarks