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 have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29306 Discussions

DLL project run on some computers but not others

Ed_F_
Beginner
708 Views

I have a project where the main program is written in VB6.  The VB6 calls a Fortran DLL, which subsequently calls two more Fortran DLL's.  All of the Fortran was recently converted from Compaq to Intel, using Intel Visual Fortran Composer XE 2013.  The code works fine on the computer in which it was compiled, and has been deployed successfully to several other computers which do not have any compilers.  On those, we installed the run-time libraries by running w_ccompxe_redist_ia32_2013.1.119.msi and w_fcompxe_redist_ia32_2013.1.119.msi.  However, on a few computers where the exact same installation procedure was followed, the program issues an error that the primary Fortran DLL is not found.  I know from experience that VB6 issues the same error whether it is missing the primary DLL, or something which that DLL is dependant upon, so I don't know what is actually missing or broken in this case.

As a basic test of the run-time, I tested a stand-alone Fortran console program on one of the machines which had the problem I just described.  Unlike the DLL prrogram, the stand-alone program worked fine.

I would appreciate any suggestions on what to try next.

0 Kudos
2 Replies
Steven_L_Intel1
Employee
708 Views

You also need to install the Microsoft Visual C++ redistributables for the version of Visual Studio you were using. Use of DependencyWalker is a great way to see what is missing,

0 Kudos
Ed_F_
Beginner
708 Views

Thanks Steve.  I was unaware of the Microsoft Visual C++ redistributables.  That worked on most of the computers which had the error.  I tried Dependency Walker on one of the computers with the error, before and after installing the Microsoft Visual C++ redistributables.  Strangely, it reported the same 3 DLL's missing after installing  the Microsoft Visual C++ redistributables, but my program no longer had the error.  I'm not going to worry about that one, since the program is working, but I have one more user who still gets the error after installing all the redistributables.  I'll try Dependency Walker on that one.

0 Kudos
Reply