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.

Linking a VB dll to Fortran

NotThatItMatters
Beginner
385 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
385 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