title: Qt Application Calling Dll from Fortran
body: <p>Here's the problem I got for Qt Application(Qt4\Qt5) calling Dlls from Fortran(CVF\IVF).</p>
  
  <p><strong>Qt4+Dll(CVF)+WinXp</strong></p>
  
  <ol>
  <li>It works fine <strong>in my PC</strong> both in QtCreator and as solo.</li>
  <li>not working in other's (xp or win7/8)</li>
  <li>the error is "dll not loaded" ( .isLoaded() false message)</li>
  </ol>
  
  <p>then my PC's dead, got new one and immigrated to Qt5 with IVF.
  But still the problem:</p>
  
  <p><strong>Qt5+Dll(IVF with complier_platform win32)+Win8</strong></p>
  
  <ol>
  <li>It works fine <strong>in my PC</strong> both in QtCreator and as solo</li>
  <li>not working in other's (xp or win7/8)</li>
  <li>the error is "dll not loaded" ( .isLoaded() false message)</li>
  </ol>
  
  <p>Well, after trying them from various PCs:</p>
  
  <ol>
  <li>I suppose it's not the platform problem(32bit or 64)</li>
  <li>I am sure the dll path is correct when calling</li>
  </ol>
  
  <p>Qt calling codes are </p>
  
  <pre><code> if(stlDll.load()){
    myfun fun1 = (myfun)stlDll.resolve("STLDLL");       
    if ( fun1 ){ 
        fun1(fileName_For90);  
    }
  }
  else
      QMessageBox::information(NULL, "File Missing",tr("dll not loaded, the Directory is ")+dllPath, QMessageBox::Ok); 
  </code></pre>
  
  <p>the error is always "<strong>dll not loaded</strong>", however that's the very right dllPath where I can find the dll with eyeballs but the Qt Applicaiton can not.</p>
  
  <p>Fortran dll compiling codes are :</p>
  
  <pre><code>!DEC$ ATTRIBUTES DLLEXPORT,ALIAS::stlDLL
  </code></pre>