🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8239

Re: How to communicate with Service Application

#8239
From: Remy Lebeau (TeamB)
Date: Fri, 05 Nov 2004 04:15
24 lines
2167 bytes
"Azrin Aris" <azrin_aris@yahoo.com> wrote in message
news:418ad25b$1@newsgroups.borland.com...

> What my service will do is to continously capture frames from
> the video cam. This for a university project - Smart trafic light.
> So the service will capture images from the cameras located on
> junctions.   I will then write an application to either ask the service
> to start/stop capture frames, capture to AVI, change the
> parameters so on and so forth.

Start/Stop is simple, you can use ControlService() for that.  Also, if the
service can get the AVI filename from another source, such as a
configuration file or the Registry, then you can use ControlService() to
handle start/stop of AVI capture as well.  As for changing parameters, you
could store the new values into the service's configuration file or Registry
key, and then use ControlService() to request the service to reload the new
settings as needed.

It is not documented, but TService has a virtual DoCustomControl() method to
handle custom messages sent via ControlService().


Gambit
Technical Details
Message-ID: <418afe2c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <418581c0$1@newsgroups.borland.com> <4185fb2a$1@newsgroups.borland.com> <41899500$1@newsgroups.borland.com> <4189d65f$1@newsgroups.borland.com> <4189ecdd$1@newsgroups.borland.com> <4189f3b9$1@newsgroups.borland.com> <418ad25b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ec8f0a028cab90e5
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <418581c0$1@newsgroups.borland.com> <4185fb2a$1@newsgroups.borland.com> <41899500$1@newsgroups.borland.com> <4189d65f$1@newsgroups.borland.com> <4189ecdd$1@newsgroups.borland.com> <4189f3b9$1@newsgroups.borland.com> <418ad25b$1@newsgroups.borland.com>
Subject: Re: How to communicate with Service Application
Date: Thu, 4 Nov 2004 20:15:51 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <418afe2c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099628076 68.69.17.41 (4 Nov 2004 20:14:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail