Re: How to communicate between an IDL program and an Exe? [message #41550] |
Thu, 18 November 2004 05:36 |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
Marco,
1. AFAIK, you cannot access routines inside an exe file from IDL. I suggest
that you put the routines/functions of question inside a dll, which you can
access from IDL and you can link you exe against. This way you only have one
set of routines.
2. You need to read on "Callable IDL" in the external developers guide. I
have never used it and the manual states something like that this is "hard",
but then again that is what I thought about DLM programming as well. And in
the end this wasn't so bad. However, you will not be able to use IDL debug
with any external code (wouldn't that be nice). So you are stuck with the
visual studio tools.
Cheers,
Haje
"Marc Reinig" <nospam@nospam.com> wrote in message
news:VzQmd.22377$6q2.5437@newssvr14.news.prodigy.com...
> I have a couple of questions on interfacing IDL and C in Windows.
>
> 1. I have an IDL program and a Windows .exe program. I would like the IDL
> program to be able to access functions in the .EXE the way it would do it
in
> a DLM. I want to try and avoid having two versions of important routines,
> one in a DLM and one in an EXE.
>
> 2. One of our researchers is developing algorithms in IDL that she would
> like to access from a DLM or an EXE, hopefully allowing the use of the IDL
> debug facilities while using the EXE for the complex support functions.
>
> How would I go about that.
>
> Thanks in advance,
>
> Marco
> -------------------------------------------------
> Marc Reinig
> Laboratory for Adaptive Optics
> UCO/Lick Observatory
>
>
>
|
|
|