[Solved] Load Fortran DLL (Microsoft Digital Visual Fortran)
Please help me… This is very urgent !!!
I have create a fortran DLL using Microsoft Digital Visual Fortran Studio. I am trying to load DLL in my Qt application and DLL is not loading… Below is my code
- QLibrary myLib(libPath);
- bool okLoad = myLib.load(); // check load DLL file successful or not
- bool ok = myLib.isLoaded(); // check is DLL file loaded or not
- typedef void (*FINAL)();
- FINAL mFINAL = (FINAL) myLib.resolve("FINAL");
- if (mFINAL)
- int c = 0;
when I run above code … myLib.load() is returning false
Please let me know if Qt is compatible with DLL created with Microsoft Digital Visual Fortran Studio.
thanks in advance,
EDIT (Gerolf) sourounded code by tags
Have you check, if there is some debug output when you call myLib.load()?
Have you checked with dependecy walker, if all libs that are needed are available?
Which compiler do you use?
By the way, Please sourround code by @ tags.
in general, it should not be a Qt issue, as Qt is just a set of libaries, you load to your C++ code.