got sent to the wrong address.
--- Begin Forwarded Message ---
Date: Fri, 25 Feb 2000 12:20:03 +0000
From: Simon Harding <[log in to unmask]>
Subject: Re: DLL in Fortran Power Station
Sender: Simon Harding <[log in to unmask]>
To: Non Receipt Notification Requested
<[log in to unmask]>
Reply-To: Simon Harding <[log in to unmask]>
Message-ID:
<"RFC-822:38b67374:76*/RFC-822=(060)000225122003.14737(a)mserv.res.bbsrc.ac.uk.0(062)/ADMD= /C=gb/"@MHS>
Sebastian Henkel wrote:
> Hi Alexandre,
>
> jus supposing, that your DLL is residing in the source directory with all
> your fortran file, I would recommend that you move it to the windows
> system directory where all the other DLLs are. That worked with my
> DVF 5.0 DLLs quite well.
Note the VB5 error message does not say it cannot find the dll, rather it
cannot find a particular entry point. This means that it has found the dll but
cannot find the specified function. This has three likely causes:
1. The function is not exported. Modify your Fortran according to the FPS docs.
2. The exported name is not "xxxxxx" but something else. Right-click on the dll
in Windows Explorer and select "Quickview" to see the export table. The name
specified in VB5 should match the exported function name e.g. "xxxxxx@16". You
can either use !MS$ATTRIBUTES in the Fortran to specify the exported name or
change your VB code.
3. Windows has found an old version of the dll which does not include the
function. Use "Find Files" to locate all versions of the dll. It is best not to
have multiple copies of your own dll kicking around unless you understand the
rules windows uses to locate a dll. See the windows api documentation for these
rules, they are in various places, e.g. see the LoadLibrary function. I presume
VB5 follows these rules but you might want to check the VB docs also.
Simon.
>
> Just in case you need more help in connecting Fortran DLLs and VB
> frontends, send me a mail.
>
> Sebastian Henkel
>
>
> Alexandre Suman de Araujo wrote:
>
> > Hi guys...
> >
> > I need to do a DLL in Microsoft Fortran Powerstation and use it in a
> > interface made in VB5.
> > I implemented a example of Powerstation's Help but when I call the function
> > in the VB5 I have the error:"can't find DLL entry point xxxxxx in
> > yyyyyy.dll", where xxxxxx and yyyyyy are the names of function and dll.
> > Can somebody help me with this??? Can somebody send some example that run
> > without error???
> > Very Thank's
>
--- End Forwarded Message ---
list owner
-------------------
Ian
[log in to unmask]
* This e-mail message was sent with Execmail V5.0 *
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|