Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

fortran calling delphi dll

schnitzel
Beginner
691 Views
i try to call a delphi-dll using windows api, because i dont have a lib file for this dll.

use kernel32
use, intrinsic :: iso_c_binding
...
dll_handle = LoadLibrary ("my_dll.dll"C)

i compile it by ifort /nologo /libs:dll progname.f90 and/or by ifort /nologo progname.f90
but the answer (dll_handle) is 0 :-(

greetings
philipp
0 Kudos
3 Replies
anthonyrichards
New Contributor III
691 Views
Try using the full path name for the DLL.
Is it registered?
0 Kudos
schnitzel
Beginner
691 Views
same result...

its a trial version
0 Kudos
Steven_L_Intel1
Employee
691 Views
Call GetLastError (a Windows API routine) after the failed call to get the reason.
0 Kudos
Reply