FORTRAN created dll cannot be found by VB
- From: "Athena" <girit@xxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 14:00:58 -0500
Hello,
I am going crazy. I created a dll from CVF (See below for partial list
of ANOVAOneWay.dll). I tested it using a test program in Fortran. Then I
call it from a VB program using the declaration below. When I run I get
"Error 53, File not found" error. I put the dll file in Windows\System32 or
where the VCB6 file is, I still get the same file not found error. I also
tried dumpbin /exports on this file and I get:
What is wrong?
Thank you.
Cem
\------------------------------------------------------------
D:\Files\Math\F32\Files\ANOVAOneWay\Debug>dumpbin /exports anovaoneway.dll
Microsoft (R) COFF Binary File Dumper Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
Dump of file anovaoneway.dll
File Type: DLL
Section contains the following exports for ANOVAOneWay.dll
0 characteristics
45649B34 time date stamp Wed Nov 22 13:47:16 2006
0.00 version
1 ordinal base
1 number of functions
1 number of names
ordinal hint RVA name
1 0 00001000 ANOVAOneWay
Summary
1000 .data
1000 .rdata
1000 .reloc
1000 .text
1000 .trace
--------------------------------------------------------------
Fortran Subroutine:
subroutine ANOVAOneWay(nGrps, nAll, nObs, x, sst, ssbg, sswg,
* msbg, mswg, dfbg, dfwg, dft,
* FValue, pFValue, cFValue, STATUS)
!DEC$ ATTRIBUTES DLLEXPORT::ANOVAOneWay
!DEC$ ATTRIBUTES ALIAS:"ANOVAOneWay" ::ANOVAOneWay
!DEC$ ATTRIBUTES DLLIMPORT::CritVal
!DEC$ ATTRIBUTES ALIAS:"CritVal" ::CritVal
.....
-------------------------------------------------------------
VB calling from
....
' Test ANOVA
Call ANOVAOneWay(nGrp, nAll, nObs(1), x(1, 1), sst, ssbg, sswg, msbg,
mswg, dfbg, dfwg, dft, _
FValue, pFValue, cFValue, STATUS)
......
--------------------------------------------------------------
VB sub declaration
Option Explicit
Declare Sub ANOVAOneWay Lib
"D:\Files\Math\F32\Files\ANOVAOneWay\Debug\ANOVAOneWay.dll" _
(nGrp As Long, nAll As Long, nObs As Long, x As Double, sst As
Double, ssbg As Double, sswg As Double, _
msbg As Double, mswg As Double, dfbg As Double, dfwg As Double, dft
As Double, _
FValue As Double, pFValue As Double, cFValue As Double, STATUS As
Long)
.
- Follow-Ups:
- Re: FORTRAN created dll cannot be found by VB
- From: Mark Westwood
- Re: FORTRAN created dll cannot be found by VB
- Prev by Date: Re: Is this legal?
- Next by Date: Re: Is this legal?
- Previous by thread: Is this legal?
- Next by thread: Re: FORTRAN created dll cannot be found by VB
- Index(es):
Relevant Pages
|