🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to communicate with Service Application

#8262
From: Remy Lebeau (TeamB)
Date: Mon, 08 Nov 2004 08:53
16 lines
1583 bytes
"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
Technical Details
Message-ID: <418f339d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!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> <418afe2c$1@newsgroups.borland.com> <418e6481$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> <418afe2c$1@newsgroups.borland.com> <418e6481$1@newsgroups.borland.com>
Subject: Re: How to communicate with Service Application
Date: Mon, 8 Nov 2004 00:53:07 -0800
Lines: 18
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: <418f339d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099903901 68.69.17.41 (8 Nov 2004 00:51:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail