FORTRAN created dll cannot be found by VB



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)


.



Relevant Pages

  • Re: vb as front end of a fortran dll
    ... fortran dll that will communicate with VB: ... I would be happy to re-post code for the GUI and DLL as well as batch ... <end quote> ... A module is inserted to contain the declaration. ...
    (microsoft.public.vb.general.discussion)
  • Re: general query
    ... like to make something from Eigensystems my hello fortran 90 prog. ... A fella named elliot thinks that I can make a fortran dll that will communicate with VB: ... <end quote> ... A module is inserted to contain the declaration. ...
    (comp.lang.fortran)
  • Re: FORTRAN created dll cannot be found by VB
    ... I indeed linked the library of the dll file in the DS environment. ... But If I run the VB code, as soon as the execution hits the subroutine call, ... Fortran written DLL for calling by a C/C++ language program. ... call it from a VB program using the declaration below. ...
    (comp.lang.fortran)
  • Re: Look at this before considering to use Intel Visual FORTRAN
    ... > FORTRAN is definitely not the first choice. ... > workaround by writing a COM-Wrapper in DVF, so the DLL runs in the DVF ... > Intel Customer Support ...
    (comp.lang.fortran)
  • Re: exporting functions/subs from fortran?
    ... It's nice to hear other developers with your caliber exist. ... Yes I did dismiss the other options regarding the DLL development (in-proc, ... >> but this project is all FORTRAN and I figured this would be a good place ... >> the fact that I'm calling code in an exe from another exe and the first ...
    (comp.lang.fortran)