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

Home » Public Forums » archive » Re: more difficulties in IDL - C++ combination
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: more difficulties in IDL - C++ combination [message #35348 is a reply to message #35346] Sat, 07 June 2003 22:49 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Juan Luis Medina Trujillo" wrote in message ...

> Im starting to know more about IDL, but then Ive been thinking in the
> main architecture of the complex program I have to implement and I need
> pipes between IDL and C++. In the top of the software and the only thing
> the scientists (astrophysics) will see will be a GUI (widget in IDL)
> made preliminarily in IDL and able to perform many scientific functions.
> This IDL process will be using the pipes to hear from C and to send
> commands, this means that once the C program is launched from IDL, IDL
> should continue iterating between pipes and waiting also for user
> requirements.
>
> I dont know if I made myself clear, does anybody know if this is
> feasible using IDL - C combination?? does IDL get halted when the C
> function is launched?? how does it work?

Calling a DLM function is like calling any other IDL function, program
execution is halted until the function returns. This doesn't mean you are
stuck though. You can send events back to IDL thru the widget interface.
It is rather limited in that you only can send back a single long value (I
think) but it is sufficient to notify your IDL process that something has
happened on the C side. From this point on I am making all of this up but
you could call a DLM function which launches your C++ code in a separate
thread and communicate "events" via IDL's widget interface and another set
of DLM functions could be called in response to these events. I can
elaborate if desired.


> In case it is not possible, maybe a solution is to run both programs
> independently and IDL would connect with the program in C++ (dont know
> how) iteratively while running the widget.

This is certainly possible. Reimar's post might get you started. ALso, the
socket functions or shared memory functions (5.6+) might be useful.


Good Luck!

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: help with gaussfit
Next Topic: Re: help with gaussfit

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

Current Time: Sat Oct 11 22:07:09 PDT 2025

Total time taken to generate the page: 0.01021 seconds