🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to communicate with Service Application

#8373
From: Remy Lebeau (TeamB)
Date: Thu, 04 Nov 2004 09:18
22 lines
1759 bytes
"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
Technical Details
Message-ID: <4189f3b9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!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>

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>
Subject: Re: How to communicate with Service Application
Date: Thu, 4 Nov 2004 01:18:56 -0800
Lines: 24
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: <4189f3b9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099559865 68.69.17.41 (4 Nov 2004 01:17:45 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail