I am trying to learn how to add fortran references to a vb.net project.
I have written a simple fortran code:
Made a dll by using the SilverFrost compiler.
Added this dll into my vb.net project as reference.
Calling the FORTRAN subroutine in the program
I am getting an execution error,
Any help will be greatly appreciated.
Best of regards
I have written a simple fortran code:
VB.NET:
SUBROUTINE TEST(A,B,C)
REAL:: A,B,C
C=A+B
END TEST
Added this dll into my vb.net project as reference.
Calling the FORTRAN subroutine in the program
VB.NET:
Dim a, b, c As Single
Private Declare Ansi Sub TEST Lib "FortranApplication1.dll" (ByRef a As Single, ByRef b As Single, ByRef c As Single)
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
a = TextBox1.Text
b = TextBox2.Text
Call TEST(a, b, c)
TextBox3.Text = c
End Sub
I am getting an execution error,
"No entry point found for TEST"
Any help will be greatly appreciated.
Best of regards