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

Home » Public Forums » archive » Re: dynamic memory in dll
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: dynamic memory in dll [message #31062 is a reply to message #31029] Mon, 03 June 2002 18:04 Go to previous messageGo to previous message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
in article 3cfb8997.0@news.ruca.ua.ac.be, Gert Van de Wouwer at
Gert.VandeWouwer@NOSPAMua.ac.be wrote on 6/3/02 11:21 AM:

> Hi,
>
> I want to use C++ code through a dll with call_external. Is it possible to
> allocate IDL memory for a variable that is alive after the dll unloads? I
> mean:
>
Hello Gert,

Do you really want to pass in a pointer or do you just want to create an
array in the dll and pass it back to IDL? i.e.

;a does not exist yet
call external (name, function, a, b, c,d ,...)
a now contains something (not fixed size)

I avoid call_external at all costs. It is so much easier to write your own
dlm/dll even if you have to call another dll. If you choose this route then
you want to use the IDL_MakeTempArray in your dll and pass back the IDL_VPTR
it creates. That way you can use it in your IDL code just like a normal
variable.

-Ronn


--
Ronn Kling
KRS, inc.
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.5!
"Calling C from IDL, Using DLM's to extend your IDL code"
http://www.rlkling.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: call_external, Fortan question
Next Topic: sec : U Re: Fitting a map to an image

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

Current Time: Thu Oct 09 18:59:44 PDT 2025

Total time taken to generate the page: 0.96052 seconds