- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using the full path name for the DLL.
Is it registered?
Is it registered?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
same result...
its a trial version
its a trial version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Call GetLastError (a Windows API routine) after the failed call to get the reason.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page