Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Linking a VB dll to Fortran

NotThatItMatters
Beginner
210 Views
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?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
210 Views
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.
0 Kudos
Reply