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

Home » Public Forums » archive » Re: idl dlm
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: idl dlm [message #36580] Wed, 08 October 2003 10:44
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Wroozee" wrote...

> hi, i'm new to IDL, so this might be a basic question for all IDL
> experts. Any help is greatly appreciated.
>
> I have this .cpp file and i need to call the functions in this file
> from IDL.
>

Unfortunatly this really isn't a basic question. Interfacing with IDL via
.dlms isn't as simple as writing some cpp code. You need to work within the
confines of the IDL system routine interface. For example, you can't return
a pointer to an object as cpp pointers are not one of the data type
supported by IDL. To return a pointer to IDL you need to pass it as an
array of IDL_TYP_BYTE.

That being said, it really isn't *that* hard with the right tools. I would
suggest investing in Ronn Kling's "Calling C from IDL". He should be close
to finishing his second edition which includes a chapter on calling cpp from
IDL. His first edition is available from his website www.kilvarock.com.
Even his first edition, without the cpp chapter, will help get you on your
way much quicker than the External Development Guide.

Speaking of, you may want to spend some time with the EDG too. But then
again, you may not.

good luck!

-Rick
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idl dlm
Next Topic: Compiling programmes within programmes.

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

Current Time: Sat Oct 11 12:37:20 PDT 2025

Total time taken to generate the page: 1.35960 seconds