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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: importing .dll files [message #68344] Tue, 20 October 2009 05:27
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
My guess too is that you forgot to export the function in the dll.
That is the main difference to sharable object (so) libraries in
linux, where you do not need this step.

On Oct 20, 3:45 am, Wox <s...@nomail.com> wrote:
> On Mon, 19 Oct 2009 16:06:00 -0700 (PDT), Cindy
>
>
>
> <cgoet...@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.
Re: importing .dll files [message #68349 is a reply to message #68344] Tue, 20 October 2009 00:45 Go 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.
Re: importing .dll files [message #68351 is a reply to message #68349] Mon, 19 October 2009 17:45 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Cindy 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'

not sure if it is your problem, but you have 2 spaces between Visual and
Studio...

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SGP4 Orbit Prediction
Next Topic: linear regression F-test

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

Current Time: Wed Oct 08 15:55:52 PDT 2025

Total time taken to generate the page: 0.00587 seconds