importing .dll files [message #68352] |
Mon, 19 October 2009 16:06 |
cgoethel
Messages: 20 Registered: April 2008
|
Junior Member |
|
|
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
Do I need to register the .dll file or add the path name?
Thanks in advance for your help!
Cindy
PS - For what it's worth test.dll currently only contains one
procedure, 'aoc', which is a simple two line fortran subroutine which
takes a value 'r' (radius) and calculates the area of a circle.
|
|
|