本文介绍了从Vb.net调用Fortran DLL函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我无法从Vb.net调用的Fortran DLL函数中获取输出。这是Fortran函数的映射声明在Vb.net



< dllimport(fortran.dll,> _

公共共享子功能名称(ByRef Cosnt1 As Integer) ,ByRef Cosnt2 As Integer,ByRef Param1 As Integer,ByRef InputArray(1,1)As Double,ByRef TempArray(1,1)As Double,ByRef OutArray(1,1)As Double,ByRef FlagArray(1,1)As Integer ,callbakc1 As CallBack11)

End Sub



其中InputArray ------------ 2包含的维数组输入值

OutArray ------------- 2在上述函数调用后应包含输出值的维数组

我能够执行上面的函数,但'OutArray'没有返回任何值。



非常需要你的帮助: - (

解决方案

Hi,

I am not able to get the output from a function in Fortran DLL called from Vb.net.Here goes the mapped declaration of function of Fortran in Vb.net

<dllimport("fortran.dll",> _
Public Shared Sub FunctionName(ByRef Cosnt1 As Integer, ByRef Cosnt2 As Integer, ByRef Param1 As Integer,ByRef InputArray(1,1) As Double, ByRef TempArray(1,1) As Double, ByRef OutArray(1,1) As Double, ByRef FlagArray(1,1) As Integer, callbakc1 As CallBack11)
End Sub

Where InputArray ------------ 2 Dimensional array which contains input values
OutArray ------------- 2 Dimensional array which should contain output values after the above function call
I am able to execute the above function but 'OutArray' is not returning any values.

Badly need you guys help:-(

解决方案


这篇关于从Vb.net调用Fortran DLL函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 06:13