Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Robert_B_4
Beginner
53 Views

Missing Module Error when using Fortran DLL

Jump to solution

I am getting an unable to load DLL error which states that the specified module could not be found. Exception 0x8007007E.  The development environment is VS2015 on Window7.  The DLL (written in Fortran update 3) works when called from a C# desktop application under Visual Studio but when the C# application and DLL is distributed to test PC (Windows 7) the error appears.  I though it might need the Fortran redistribution package (w-fcompex-redist-mis...) but it did not help.  What am I missing?

0 Kudos

Accepted Solutions
IanH
Black Belt
53 Views

You can use the dependency walker utility on the test PC to get more insight into the particular dependencies that an executable or DLL requires.

You need to have the relevant C++ runtime installed as well as the Fortran runtime.

View solution in original post

3 Replies
IanH
Black Belt
54 Views

You can use the dependency walker utility on the test PC to get more insight into the particular dependencies that an executable or DLL requires.

You need to have the relevant C++ runtime installed as well as the Fortran runtime.

View solution in original post

mecej4
Black Belt
53 Views

Are the relative locations of the C# EXE and the DLL the same on the development and test machines? If not, you may have to rectify that situation or set the PATH environment variable to match the changes.

Robert_B_4
Beginner
53 Views

The Visual C++ redistributable files for VS2015 did the trick.  I had placed the DLL in the same folder as the EXE so there was not a PATH issue to contend with. 

Thanks for help.