🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to communicate with Service Application

#8248
From: Azrin Aris
Date: Fri, 05 Nov 2004 21:41
33 lines
2625 bytes
Remy Lebeau (TeamB) wrote:
> "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
> 
> 
Thanks Remy, The DoCustomControl() is I think the solution that I'm 
looking for. One more question, how do I set the Description of the 
service?. I cannot find any method or property to do that?

Azrin
Technical Details
Message-ID: <418bf38c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!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> <418afe2c$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
Date: Sat, 06 Nov 2004 05:41:32 +0800
From: Azrin Aris <azrin_aris@yahoo.com>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to communicate with Service Application
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> <418afe2c$1@newsgroups.borland.com>
In-Reply-To: <418afe2c$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 203.127.152.14
Message-ID: <418bf38c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099690892 203.127.152.14 (5 Nov 2004 13:41:32 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail