- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to link a VB6 [?] dll to a Fortran exe. The VB6 dll lies in the \\\\Windows (Windows\\\\SysWOW64) directory.
I add the dll to the link stage using "Additional Dependencies" full_path:\\\\dll_name.dll
When I try to compile, it complains of fatal error LNK1107, invalid or corrupt file.
If I use the dumpbin program to characterize the dll, it tells me there are five function exports with appropriate names.
How might I link the dll to the Fortran code?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't - a DLL can't be linked to. To link you would need an "export library", which VB won't create for you.
Instead, you can dynamically load the DLL, locate the entry point you want to call and call it. A sample is provided under DLL\DynamicLoad.
Instead, you can dynamically load the DLL, locate the entry point you want to call and call it. A sample is provided under DLL\DynamicLoad.
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