Jim,

Hi.  It really depends on the ActiveX and EXE.  If you are writing both,
then you have a variety of methods (from the simplest):

1.  If both are database driven, you can write stuff into a table and have
both poll the table.  If they are not, you can use a disk file.
2.  Use WM_COPYDATA messages / named shared memory.
3.  Use DDE
4.  Use Mailslots, named pipes
5.  Use TCP / UDP sockets
6.  Design the EXE as an OLE automation server, with the ActiveX DLL the
client.

Now, to talk to the EXE, you will need to determine whether it is running or
not.  You can use EnumProcesses / FindWindow API calls for this.

Hope this helps.
Dennis.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jim Zheng
> Sent: Monday, 30 August 1999 11:28
> To: Multiple recipients of list delphi
> Subject: [DUG]: How to communicate to program running on NT
> WEB server?
>
>
> Hi all,
>
> Has anyone any ideal for how an ActiveX OCX communicate to a
> program already
> running on the NT Web server?
> I don't want the OCX launching another copy of the program.
>
> Kindest Regards
>
> Jim
>
>
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to