Article View: borland.public.cppbuilder.nativeapi
Article #8283Re: How to communicate with Service Application
From: Azrin Aris
Date: Wed, 10 Nov 2004 00:10
Date: Wed, 10 Nov 2004 00:10
26 lines
2051 bytes
2051 bytes
Remy Lebeau (TeamB) wrote:
> 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
>
>
I've put the actual code in the DoCustomControl Method to show a form.
but it never showed. The form is just a configuration form. How can I
make the form visible from within a service application?
if(CtrlCode==SERVICE_CONTROL_MCAMCONFIG)
{
if(frmCamConfig)
{
frmComConfig->Show();
}
}
I've created the form in ServiceCreate event.
Azrin
Technical Details
Message-ID:
<41915c97@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!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: Wed, 10 Nov 2004 08:10:52 +0800 From: Azrin Aris <azrin@rndtm.net.my> 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.93.96.109 Message-ID: <41915c97@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100045463 219.93.96.109 (9 Nov 2004 16:11:03 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail