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

Home » Public Forums » archive » calling C from IDL
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
calling C from IDL [message #43042] Wed, 09 March 2005 06:10
s.gossen is currently offline  s.gossen
Messages: 1
Registered: March 2005
Junior Member
Hello!

I have a problem in IDL. I try to call a C-Prog in IDL. I use IDL6.0
under win2000. I will call the C-Prog with the IDL function
"call_external". I write 2 short test-programms to see the handling of
the function.

my C-Prog "probiere.c":

#include <stdio.h>
#include <stdlib.h>
int probiere( void ){
int i, j;
j = 4711;
printf("Hello World\n");
i = getchar();
return j;
}

I compile this file with the Borland c++ compiler to create a
'probiere.dll'.
I do this like: "bcc32 -WD probiere.c"

my IDL-Prog "c_call_from_idl.pro"

pro c_call_from_idl
print, 'vor c aufruf'
result = call_external('C:\sgossen\idl\igor\c-prog\probiere.dll','pro biere')
print, 'nach c aufruf'
print, 'result: ', result
help, result
end

Executing this file I get following error-message:

% CALL_EXTERNAL: Error loading sharable executable.
Symbol: probiere, File =
C:\sgossen\idl\igor\c-prog\probiere.dll
ERROR_PROC_NOT_FOUND

I don't really know where the error could be. The path of the
.dll-file is still correct.
Can you help me with my problem?
Thank you!
Sascha Gossen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idlmeteo
Next Topic: calling c from idl

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

Current Time: Wed Oct 08 17:32:28 PDT 2025

Total time taken to generate the page: 0.00465 seconds