Re: Fortran-Dll von VB aus aufrufen

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Thorsten Albers (albersNO_at_SPAMuni-freiburg.de)
Date: 02/13/04


Date: Fri, 13 Feb 2004 04:23:23 -0800

anonymous@discussions.microsoft.com schrieb im Beitrag
<f92f01c3f21b$23719170$a001280a@phx.gbl>...
> Das Programm funktioniert auch wenn ich es über die exe
> starte auf jedem PC der Visual Fortran installiert hat.
> ...
> Ich denke zwar das ich die Parameter richtig übergeben
> habe, da das Programm ja auf meinem Rechner funktioniert,
> Hier aber trotzdem mein DLL-Aufruf.
> ...
> Fortran Code:
> subroutine testen1(leistung,fever,cuver,hvspannung,
> 1 nvspannung,uk,testneu)
> !MS$ATTRIBUTES DLLEXPORT, ALIAS:'testen1' :: testen1

Wenn der Fortran Code noch erforderlich wäre, dann wäre dieses Zitat von
Dir alles andere als hilfreich! Es kommt u.a. auch auf die Datentypen der
Argumente an!!

Aber wie dem auch sei: Da die EXE einwandfrei unter den angegebenen
Bedingungen ausgeführt wird, kann es nicht an einer Inkompatibilität der
Schnittstelle liegen.

Es ist interessant, das die DLL korrekt aufgerufen und ausgeführt wird,
wenn Visual Fortran auf dem jeweiligen Computer installiert ist. Hast Du
verifiziert, daß dieses die einzige Bedingung ist, die für eine korrekte
Ausführung gegeben sein muß? Wenn dem so ist, dann wird wohl doch
irgendeine Abhängigkeit zu einer externen Datei von Visual Fortran
bestehen. Ich kenne mich mit VF nicht aus, vermute aber, daß man auch dort
zwischen statischem und dynamischem Linken wählen kann. Ich würde also
einfach einmal in VF alle Einstellungen zum Linken für die DLL überprüfen.

Ansonstent: Wird bei den Computern, wo EXE und DLL korrekt ausgeführt
werden, die EXE auch über das Netzwerk gestartet? Ein Netzwerk-Problem
würde ich nämlich als das nächstliegende Problem vermuten.

-- 
----------------------------------------------------------------------
THORSTEN ALBERS				        Universität Freiburg
                                                albers@
                                                       uni-freiburg.de
----------------------------------------------------------------------


Relevant Pages

  • exporting functions/subs from fortran?
    ... but this project is all FORTRAN and I figured this would be a good place to ... can utilize functions and subroutines from outside the process (the exe). ... in the source code I get access violations. ... (created a genuine dll project). ...
    (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)
  • Re: exporting functions/subs from fortran?
    ... | but this project is all FORTRAN and I figured this would be a good place to ... For one, I knew it was possible to export functions from an .exe file, ... | in the source code I get access violations. ... | (created a genuine dll project). ...
    (comp.lang.fortran)
  • Re: Loadlibrary returns err.lastdellerror 127
    ... I'm not familiar with any Visual Fortran issues, but my first guess would be that the DLL isn't properly registered, or is somehow ... on a path that's inaccessible to the EXE in some fashion (i.e., the credentials of the person running the EXE don't have permission ... the resulting .exe I load all the dependant DLL's first (there are ...
    (microsoft.public.vb.general.discussion)
  • Re: Fortran dll compiles, but runs differently, under different compilers
    ... It works on the old dll ... >which was compiled over a year ago by Microsoft's Visual Fortran ... Microsoft's compiler was called "Fortran PowerStation". ...
    (comp.lang.fortran)