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

Home » Public Forums » archive » Re: importing .dll files
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: importing .dll files [message #68349 is a reply to message #68344] Tue, 20 October 2009 00:45 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Mon, 19 Oct 2009 16:06:00 -0700 (PDT), Cindy
<cgoethel@igpp.ucla.edu> wrote:

> Hello,
>
> I have a dynamic linked library (created in Visual Fortran) and I am
> trying to use the call_external procedure to use one of the
> subroutines, however, I am unclear on the error messages I am getting.
>
> IDL>dll_file_name=' C:\Program Files\Microsoft Visual Studio
> \MyProjects\test\Debug\test.dll'
> IDL> result=call_external(dll_file_name, 'aoc', r)
> CALL_EXTERNAL: Error loading sharable executable.
> Symbol: aoc, File = C:\Program Files\Microsoft Visual Studio\MyProjects
> \test\Debug\test.dll
> The specified procedure could not be found.
>
> Does the above mean
> 1. it can't access/open/interpret the .dll file and hence can't find
> the procedure
> or
> 2. just can't find the procedure in the library


When it doesn't find the library, it gives this message:
% CALL_EXTERNAL: Error loading sharable executable.
Symbol: aoc, File = test.dll
The specified module could not be found.

In your case, it finds the dll, but doesn't find the aoc procedure.

One of the problems I can think of is "name decoration". Use the
Dependency Walker (google it and download) to check whether the export
function aoc has some strange characters appended to it.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: SGP4 Orbit Prediction
Next Topic: linear regression F-test

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

Current Time: Sun Oct 12 03:41:43 PDT 2025

Total time taken to generate the page: 1.92136 seconds