 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
MGGM
Joined: 20 Aug 2012 Posts: 5
|
Posted: Tue Aug 21, 2012 3:39 pm Post subject: Excel VBA: Can't find DLL entry point FEXACT in fexact.dll |
|
|
Hi:
Newbie on sight!
I am trying to call a FORTRAN DLL from VBA Excel, and I get the following error (Can't find DLL entry point FEXACT in....). The FORTRAN subroutine is rather complicated (it comes from: http://jblevins.org/mirror/amiller/fexact.zip -> FEXACT.f90 file). I had to modify it a bit, since it was a module driven by another program.
I made sure I had added $dec attributes before compiling & slink-ing it:
SUBROUTINE FEXACT (nrow, ncol, table, ldtabl, expect, percnt, emin, prt, pre)
!dec$ attributes dllexport, stdcall, alias:'FEXACT', :: FEXACT
But the VBA wrapper gives the entry point error.
Option Base 1
Option Explicit
Public Declare Sub FEXACT Lib "E:\Test\fexact.dll" _
(ByRef NROW As Long, ByRef NCOL As Long, ByRef TABLE As Double, ByRef LDTABL As Long, ByRef EXPECT As Double, ByRef PERCNT As Double, ByRef EMIN As Double, ByRef PRT As Double, ByRef PRE As Double)
Any ideas/hints/pointers?
Thank in avance,
MartaGG |
|
Back to top |
|
 |
MGGM
Joined: 20 Aug 2012 Posts: 5
|
Posted: Thu Aug 23, 2012 7:54 am Post subject: Any idea/pointer, please? |
|
|
I'm really stuck on that.
THanks,
Marta GG |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Thu Aug 23, 2012 8:17 am Post subject: |
|
|
I don't think that you will get much help on using !dec$ codings from this Silverfrost Fortran forum.
I suggest that you contact the Intel� Visual Fortran Compiler for Windows forum for discussion of this problem.
John |
|
Back to top |
|
 |
MGGM
Joined: 20 Aug 2012 Posts: 5
|
Posted: Sat Aug 25, 2012 10:23 am Post subject: OK, thanks, thread closed |
|
|
MGG |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|