Article View: borland.public.cppbuilder.nativeapi
Article #8270Re: How to communicate with Service Application
From: Azrin Aris
Date: Tue, 09 Nov 2004 02:07
Date: Tue, 09 Nov 2004 02:07
27 lines
1916 bytes
1916 bytes
Remy Lebeau (TeamB) wrote:
> "Azrin Aris" <azrin_aris@yahoo.com> wrote in message
> news:418e6481$1@newsgroups.borland.com...
>
>
>> if(CtrlCode==SERVICE_CONTROL_MCAMCONFIG)
>> {
>> ShowMessage("Got it");
>> }
>
>
> You cannot call ShowMessage() from a service at all. It doesn't work. You
> must use MessageBox() instead, and you must specify the
> MB_SERVICE_NOTIFICATION flag when calling MessageBox(), otherwise it won't
> work properly, either.
>
>
> Gambit
>
>
Thanks Remy. Now I got everything working - most of it ;). Thank to all ...
Regards,
--
Azrin
Technical Details
Message-ID:
<41902667@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!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> <418ad25b$1@newsgroups.borland.com> <418afe2c$1@newsgroups.borland.com> <418e6481$1@newsgroups.borland.com> <418f339d$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: Tue, 09 Nov 2004 10:07:35 +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> <418e6481$1@newsgroups.borland.com> <418f339d$1@newsgroups.borland.com> In-Reply-To: <418f339d$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.74.144.203 Message-ID: <41902667@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099966055 219.74.144.203 (8 Nov 2004 18:07:35 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail