Trouble with file location in excel/fortran dll connection

后端 未结 6 1829

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:44

    Not sure what could be wrong.

    I couldn't get my hands on an ifort compiler, but I tried your code by copying a random DLL to the Temp folder specified the Declare statement. When I run it, the error I get is: "Can't find DLL entry point FortranCall in C:\Temp\RandomDLL.DLL", which is consistent with using the wrong DLL (that is, the DLL was found, but it doesn't jive with the calling code).

    You could try to replace the DLL you compiled with a random other DLL and see if you get the same error. If you do, it is a problem with the OS environment, not the compiler.

    This is probably not very helpful, but may eliminate one or two possibilities.

    Environment I used: Win Vista, Excel 2003

提交回复
热议问题