replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Excel VBA: Can't find DLL entry point FEXACT in fexact.dll
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excel VBA: Can't find DLL entry point FEXACT in fexact.dll

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
MGGM



Joined: 20 Aug 2012
Posts: 5

PostPosted: Tue Aug 21, 2012 3:39 pm    Post subject: Excel VBA: Can't find DLL entry point FEXACT in fexact.dll Reply with quote

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
View user's profile Send private message
MGGM



Joined: 20 Aug 2012
Posts: 5

PostPosted: Thu Aug 23, 2012 7:54 am    Post subject: Any idea/pointer, please? Reply with quote

I'm really stuck on that.

THanks,
Marta GG
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Thu Aug 23, 2012 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
MGGM



Joined: 20 Aug 2012
Posts: 5

PostPosted: Sat Aug 25, 2012 10:23 am    Post subject: OK, thanks, thread closed Reply with quote

MGG
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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