Article View: borland.public.cppbuilder.nativeapi
Article #8235Re: How to communicate with Service Application
From: Azrin Aris
Date: Fri, 05 Nov 2004 01:07
Date: Fri, 05 Nov 2004 01:07
37 lines
2373 bytes
2373 bytes
Remy Lebeau (TeamB) wrote: > "Azrin Aris" <azrin_aris@yahoo.com> wrote in message > news:4189ecdd$1@newsgroups.borland.com... > > >>I just want to use sendmessage and put numbers in the lparam. > > > You cannot use SendMessage() with a service. There is no window available > to receive the message. > > Again, I ask you, what EXACTLY are you trying to pass? What do you numbers > represent? I only ask because if you can assign a unique message to each > numberic value, then you don't have to pass numbers at all, and then you can > use ControlService() to pass custom messages to the service directly. > > >>I've tried using SendMessage with HWND_BROADCAST >>and I've #define MC_ACTIVATE (WM_USER + 100) as the >>message id but the other application is not receiveing it. > > > Nor should it. > > > Gambit > > 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. Azrin
Technical Details
Message-ID:
<418ad25b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ec8f0a028cab90e5 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 05 Nov 2004 09:07:40 +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> In-Reply-To: <4189f3b9$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 203.127.152.20 Message-ID: <418ad25b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099616859 203.127.152.20 (4 Nov 2004 17:07:39 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail