🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Messaging a TService

#14059
From: BlackFrancis
Date: Mon, 25 Aug 2003 06:40
34 lines
2226 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f47d014@newsgroups.borland.com...
>
> "BlackFrancis" <areyouabot@toobad.com> wrote in message
> news:3f46e02e$1@newsgroups.borland.com...
>
> > I have been able to send messages (using SendMessage) and
> > recieve them by overriding WndProc.  My problem is now that I
> > want to send a message to a TService.
>
> Services do not accept messages like you are thinking.
>
> > TServices aren't allowed to have Controls
>
> That's not entirely accurate, but it takes a lot of work to set it up
> correctly, so it is best to not put controls in services directly.
>
> > Is there any way around this, or will I have to try
> > an alternative messaging methodology?
>
> You will have to set up and establish a different kind of IPC
(inter-process
> communication) connection to the service.  Depending on the nature of your
> messages, if they do not have any parameters, then you can use
> ControlService() to send custom control codes to the service.  TService
has
> a protected DoCustomControl() method that you can override for processing
> them.  Otherwise, you will need to use named pipes, TCP sockets, RPC
(Remote
> Procedure Call), COM, etc instead.
>

Many Thanks
Technical Details
Message-ID: <3f49af4f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f46e02e$1@newsgroups.borland.com> <3f47d014@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,161ad0877257a485
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-24 23:41:26 PST
From: "BlackFrancis" <george_f@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f46e02e$1@newsgroups.borland.com> <3f47d014@newsgroups.borland.com>
Subject: Re: Messaging a TService
Date: Mon, 25 Aug 2003 16:40:20 +1000
Lines: 36
Organization: eLucid
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.55.103.198
Message-ID: <3f49af4f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061793615 203.55.103.198 (24 Aug 2003 23:40:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail