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

Home » Public Forums » archive » Re: C++ and 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: C++ and CALL_EXTERNAL [message #60627 is a reply to message #60623] Thu, 29 May 2008 17:46 Go to previous messageGo to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
I would recommend making your own DLM's in preference to using
CALL_EXTERNAL and /AUTO_GLUE. Making your own DLM is a bit more
tedious but gives you more control in the way that IDL variables are
type cast.

If your keen to get dirty with C++ then I would recommend having a
look at my examples of converting Boost::MultiArray objects to and
from IDL Variables.

I take advantage of template specialization so that you only need to
ever use two functions:

const IDL_TYPE i = idl_cast_in<IDL_TYPE>(argv[0]);

and

idl_cast_out(argv[1],i);

Source code available from

http://barnett.id.au/idl/

Robbie
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading and writing uncompressed AVI
Next Topic: mpfit2dpeak and fitting an ellipse

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

Current Time: Fri Oct 10 06:36:58 PDT 2025

Total time taken to generate the page: 1.27713 seconds