Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
Can Multidimensional Array declared in Vb.net passed to FORTRAN77.

If so Please Suggest

Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 24-Nov-14 15:51pm    
I wonder, why would you want to torture yourself with FORTRAN, especially if you are using .NET?
I don't think that exact data layout is specified for FORTRAN. All parameters are passed by reference... Other detail may depend on a compiler. You can read in the documentation of your compiler or decompile some sample code and figure out how the data is organized.
—SA

1 solution

Hi
I hope this will help you… forgive me if I will waste your time
I am not quite familiar with FORTRAN and with its linking with VB.net
I assume you have source code for both programs and that data is collected using the vb.net program
The collected data have to be as an input for the FORTRAN program
Since we assumed that you have the source code of both programs what about exporting the multidimensional array to a file on the HD of the machine and then read the file by the modified FORTRAN program and complete the task needed.
On other hand there is a technique of sharing part of the machine memory across several processes but I think that will be more headache.
 
Share this answer
 
Comments
Devkranth Kishore Vanja 25-Nov-14 2:55am    
Hi,
Thank you very much for the Solution.The Sad part is that i don't have FORTRAN77 code.It is just given as a DLL (due to information Security.)
SoftNax 25-Nov-14 5:58am    
Can you tell us more about how the FORTRAN getting its input?

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