Re: idl dlm [message #36580] |
Wed, 08 October 2003 10:44 |
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
|
|
|