Solved

Interacting with a service

Posted on 2003-11-11
3
238 Views
Last Modified: 2010-04-05
Hi,
I'm making a windows service. I'm using Delphi 7 Studio running w2k.

I have a basic service loaded and running/started. I have made a systray application from where I would like to interact with my service.

How to do? It would be nice with some small code examples.

Thanks in advance

Flemming
0
Comment
Question by:dimatic
3 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 250 total points
ID: 9728910
for me the best way is to use TCP communication
this way you can also control your service remotely

simply put a TCP server component on your service module and handle the requests
from the client app just make calls to your service
if you'll have lots of communication with lots of different actions I suggest you use RemObjects - www.remobjects.com
has features such as compression, encryption, different transport mechanisms, RPC, ..

later I'll dig up some code from an older project and post it (using Indy) :)
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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…

773 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