comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Help: Communicating between a Windows .exe program and an IDL program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Help: Communicating between a Windows .exe program and an IDL program [message #42220 is a reply to message #42219] Sun, 16 January 2005 23:08 Go to previous messageGo to previous message
Robert Barnett is currently offline  Robert Barnett
Messages: 70
Registered: May 2004
Member
Unless you are significantly dislike windows, know nothing about COM+
and nothing about VB then you might want to avoid the use of sockets. VB
has features in it to make it accessible from other applications via the
COM+ interface. I don't know any details of how this is possible.

On the other hand, sockets are probably fine if the problem is simple.
If you're talking about TCP/IP sockets then listening on a socket is not
supported (or recommended) in IDL. Thus, you would have to rely on your
GUI to take care of listening on a port waiting for IDL to connect.

If I were to use sockets I would probably prefer to stream XML (IDL 6.1
only) down the socket. I guess that just depends upon your aptitude with
XML/DOM as well as future prospects for your project.

Asynchronous behaviour can easily be achieved if there is a single
client socket per server socket. Having multiple clients per server can
become dangerous if not thought out correctly.

I guess it is viable to use sockets. The best solution greatly depends
on the language which the GUI is written in, the API's which are
available and whether cross platform compatilibity is desirable.


Robbie


Marc Reinig wrote:

> I have a Windows program that is a GUI.
>
> I have an IDL program that can do the underlying work. I would like to
> control the IDL program with the Windows GUI. My though would be to use
> sockets.
>
> Would this be viable?
>
> Could I have a widget interface that would work asynchronously to
> communicate with the GUI over the socket?
>
> Any help or recommendations would be appreciated.
>
> -Marco
>
> ========================
> Marc Reinig
> UCO/Lick Observatory
> Laboratory for Adaptive Optics
>
>
>
>


--

nrb@
Robbie Barnett
imag
Research Assistant
wsahs
Nuclear Medicine & Ultrasound
nsw
Westmead Hospital
gov
Sydney Australia
au
+61 2 9845 7223
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Auto change window focus (OS X)
Next Topic: MAKE_DLL for DLMs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:50:36 PDT 2025

Total time taken to generate the page: 0.05708 seconds