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

Home » Public Forums » archive » Re: passing pointers to CALL_EXTERNAL
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: passing pointers to CALL_EXTERNAL [message #11319 is a reply to message #11311] Tue, 24 March 1998 00:00 Go to previous messageGo to previous message
hdsfkj is currently offline  hdsfkj
Messages: 12
Registered: March 1998
Junior Member
My limitation is that my dll is itself built by linking in functions provided
by a digital
camera company. Their image acquisition function allocates the memory (up to
2 Meg per image) and returns a pointer to it. Copying 2 million bytes is
going to
cost some time. Oh well, I guess I'll get my system working using the copying
method
and then learn the LINK_IMAGE interface at my leisure (i.e. probably never).
Thanks
for the replies everyone.


Donald.





David Fanning wrote:

> Don't do this. You are headed for ruin. :-)
>
> Call_External is a *simplified* interface to your C program.
> As such it has limitations. One of them is that you MUST
> create the arrays on the IDL side, even if you intend to
> fill them on the C side. I doubt there is much "performance
> cost", especially when you compare it to the "programming
> cost", which in this case will be extremely high.
>
> The explanation for why this limitation exists is too
> long to go into here. If you think you really want to
> become an IDL developer and write all your good code
> in C, learn and use LinkImage as opposed to Call_External.
> It offers all the bells and whistles and allows you
> to do pretty much anything in you C program (within
> certain minor limitations).
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: date question
Next Topic: Re: Structure of Structure

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

Current Time: Sat Oct 11 12:32:53 PDT 2025

Total time taken to generate the page: 0.88155 seconds