Re: .lib C routines in IDL [message #55245] |
Thu, 09 August 2007 13:24 |
b_gom
Messages: 105 Registered: April 2003
|
Senior Member |
|
|
You will need to compile your static library (.lib) into a dynamic
library (.dll if using Windows), and make sure the functions use the
proper calling convention as described in the IDL external development
guide. You might also want to check out:
http://www.kilvarock.com/books/callingCfromIDL.htm
if you don't understand the process.
Brad
On Aug 8, 2:42 am, Patrizia <patriziabas...@hotmail.com> wrote:
> Hi,
> I'm trying to include some .lib files written in C in IDL.
> I tryed to include them using the CALL_EXTERNAL command of IDL but it
> doesn't work.
> Could someone give me some advices? Do I have to convert first
> the .lib files?
>
> Thanks,
>
> Patrizia
|
|
|
Re: .lib C routines in IDL [message #55280 is a reply to message #55245] |
Wed, 08 August 2007 04:37  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
You need .dll on windows and .so on unix OS. I suggest that you start out
with the demo code from the idl distro and narrow your problems. nobody here
can help you on the basis of the diagnostics "i have tried but it does not
work". So be specific and we can help. Good luck, Haje
"Patrizia" <patriziabasili@hotmail.com> wrote in message
news:1186562529.103116.284550@q75g2000hsh.googlegroups.com.. .
> Hi,
> I'm trying to include some .lib files written in C in IDL.
> I tryed to include them using the CALL_EXTERNAL command of IDL but it
> doesn't work.
> Could someone give me some advices? Do I have to convert first
> the .lib files?
>
> Thanks,
>
> Patrizia
>
|
|
|