Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
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:-(
Posted
Updated 4-Dec-13 21:16pm
v2

1 solution

 
Share this answer
 
Comments
Maciej Los 5-Dec-13 4:13am    
Looks promising ;)
+5!
[no name] 6-Dec-13 1:20am    
thanks ......
vishwanatha KB 12-Dec-13 4:11am    
thanks meel.It doesn't work in our scenario b'cause of multi-dimensional array and callback function.Pls let me know if you have any alternate solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900