Board index » delphi » Sending message to another app

Sending message to another app

Hi all.  Just a simple query for a newbie.  I have written a simple app
to send a message to another app using SendMessage and PostMessage.  It
works fine.

I want to know how I would now need to change my code to send the same
messages to another computer over a simple LAN.  Is this even possible ?

Both boxes are running Win98.

Drouinn.

 

Re:Sending message to another app


Not with Windows messages. You can use NetDDE or DCOM (I would advise you to
use DCOM).

ps. See http://www.techvanguards.com for information on COM and Delphi.

"Drouinn" <drou...@TAKEOUThotmail.com> schreef in bericht
news:3B612877.7A1B15BD@TAKEOUThotmail.com...

Quote
> Hi all.  Just a simple query for a newbie.  I have written a simple app
> to send a message to another app using SendMessage and PostMessage.  It
> works fine.

> I want to know how I would now need to change my code to send the same
> messages to another computer over a simple LAN.  Is this even possible ?

> Both boxes are running Win98.

> Drouinn.

Re:Sending message to another app


Thank You very much for your help.

I have been putting off going too deeply into COM as Im still getting my head
around the language, but I guess now is the time.

"Ah well, the honeymoon had to end sometime".... actually, my preliminary
reading shows it might not be as difficult as I first feared.... go figure...
:o)

Drouinn.

Quote
"M.H. Avegaart" wrote:
> Not with Windows messages. You can use NetDDE or DCOM (I would advise you to
> use DCOM).

> ps. See http://www.techvanguards.com for information on COM and Delphi.

> "Drouinn" <drou...@TAKEOUThotmail.com> schreef in bericht
> news:3B612877.7A1B15BD@TAKEOUThotmail.com...
> > Hi all.  Just a simple query for a newbie.  I have written a simple app
> > to send a message to another app using SendMessage and PostMessage.  It
> > works fine.

> > I want to know how I would now need to change my code to send the same
> > messages to another computer over a simple LAN.  Is this even possible ?

> > Both boxes are running Win98.

> > Drouinn.

Re:Sending message to another app


I did a work around on this between lanbased apps.
The app that sends a msg sends the code as a text file. In my case I used
the TInifile to write the messages.
The app that receives the msgs has a timer that checks the changes in the
inifile and fetches any new msg written in it.
So far it is working...
Hope this helps.

Quote
Drouinn <drou...@TAKEOUThotmail.com> wrote in message

news:3B626467.3685994C@TAKEOUThotmail.com...
Quote
> Thank You very much for your help.

> I have been putting off going too deeply into COM as Im still getting my
head
> around the language, but I guess now is the time.

> "Ah well, the honeymoon had to end sometime".... actually, my preliminary
> reading shows it might not be as difficult as I first feared.... go
figure...
> :o)

> Drouinn.

> "M.H. Avegaart" wrote:

> > Not with Windows messages. You can use NetDDE or DCOM (I would advise
you to
> > use DCOM).

> > ps. See http://www.techvanguards.com for information on COM and Delphi.

> > "Drouinn" <drou...@TAKEOUThotmail.com> schreef in bericht
> > news:3B612877.7A1B15BD@TAKEOUThotmail.com...
> > > Hi all.  Just a simple query for a newbie.  I have written a simple
app
> > > to send a message to another app using SendMessage and PostMessage.
It
> > > works fine.

> > > I want to know how I would now need to change my code to send the same
> > > messages to another computer over a simple LAN.  Is this even possible
?

> > > Both boxes are running Win98.

> > > Drouinn.

Other Threads