Trouble with file location in excel/fortran dll connection

后端 未结 6 1855

Platform: WinXP SP2, Intel Fortran 11, Excel 2007

I\'m having trouble connecting a dll file with excel.

The dll file is relatively simple:

su         


        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-21 18:41

    I had the same problem - super frustrating!

    I had the similar kind of declaration in Excel VBA: Declare Sub FortranCall Lib "C:\temp\Fcall.dll" (r1 As Long, ByVal num As String)

    It worked on my computer but it did not work on my boss's computer. All the spelling of the file name and the path specification were fine. My DLL was compiled in Microsoft Visual C++ 6.0. The problem was - A common cause for "File not found/Runtime error 53" is that the calling application cannot find dll's on which the dll in question actually depends!!! I gave my boss the DLL that I compiled in DEBUG mode - in this case DLL uses lots of other debug versions of DLL which not commonly found on regular computers. When I gave my boss RELEASE version of DLL it worked fine! See also: http://software.intel.com/en-us/forums/showthread.php?t=42472

提交回复
热议问题