Salut Alexander Zavalishin !
Dans un message de Alexander Zavalishin dat‚ du 12 Jun 97 16:04:00 il ‚tait
di
AZ> What is the simpliest and the most reliable way for
AZ> the application A to check that the application B is running and to
AZ> send some information (a set of strigs or such) to B after? (For
AZ> example: app.B is a scalable map showing different buildings, app.A
AZ> contains the list of these buildings, the task is to highlight a
AZ> certain building after it's name has been selected in the app.A.)
AZ> Shall I simply declare a message and send it to the app.B? Or shall I
AZ> use DDE?
You need IPC (Inter Process Communication). There are many ways of
doing it. It depends on what you wants to do, and what plateform you'r
using.
Personnally, I have adopted Winsock. This is not too much complicated
and give me the option to run the different task on different computers
without changing my code, just change the hostname (localhost or any
host name in the world). This si quit fast and many more easier to
program and master than the Microsoft recommanded way using COM/DCOM.
It only require you to install a TCP/IP protocol stack on your
computer, even if it is not connected to a lan. Using Winsock is
compatible between 16 and 32 bit windows.
You'll find some interesting source code on my web page. Look for the
projects TNSRV and SRV5 which is are client/server modules you can
adapt to your needs (those samples are based on Telnet just for the
ease of testing, but you only have to change the port number to use
any thing else). http://www.rtfm.be/fpiette
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)
|